Skip to content

Commit

Permalink
add missing begin/end statements (introduced by adding logging)
Browse files Browse the repository at this point in the history
  • Loading branch information
barbeque-squared committed Dec 20, 2023
1 parent 2f30df4 commit a174f0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/media/UAudioPlayback_SoftMixer.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1061,14 +1061,18 @@ function TAudioPlayback_SoftMixer.InitializePlayback: boolean;
Result := false;

if (not InitializeAudioPlaybackEngine()) then
begin
Log.LogError('Could not initialize audio playback engine', 'UAudioPlayback_SoftMixer.InitializePlayback');
Exit;
end;

MixerStream := TAudioMixerStream.Create(Self);

if (not StartAudioPlaybackEngine()) then
begin
Log.LogError('Could not start audio playback engine', 'UAudioPlayback_SoftMixer.InitializePlayback');
Exit;
end;

Log.LogStatus('Opened audio device', 'UAudioPlayback_SoftMixer.InitializePlayback');

Expand Down

0 comments on commit a174f0b

Please sign in to comment.