Skip to content

Commit

Permalink
reset karaoke mode after the song, and initialize to not karaoke
Browse files Browse the repository at this point in the history
mode
  • Loading branch information
dgruss committed Jun 9, 2024
1 parent 3925ef2 commit bcf6164
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/media/UAudioPlaybackBase.pas
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ function TAudioPlaybackBase.Open(const Filename: IPath; const FilenameKaraoke: I
KaraokeMusicStream.AddSoundFX(IReplayGain.Create());
end;

KaraokeMode := false;
if assigned(KaraokeMusicStream) then begin
KaraokeMusicStream.Volume := 0;
end;

Result := true;
end;

Expand Down Expand Up @@ -296,6 +301,7 @@ procedure TAudioPlaybackBase.Stop;
MusicStream.Stop();
if assigned(KaraokeMusicStream) then
KaraokeMusicStream.Stop();
KaraokeMode := false;
end;

function TAudioPlaybackBase.Length: real;
Expand Down

0 comments on commit bcf6164

Please sign in to comment.