Stereo Mode: turn on SEQ after the song has looped past its limit -> next track

This commit is contained in:
James R 2023-12-29 07:36:08 -08:00
parent 076cea7047
commit e7c240bf7f

View file

@ -83,18 +83,17 @@ static void M_SoundTestSeq(INT32 choice)
if (soundtest.playing && S_SoundTestCanSequenceFade()) if (soundtest.playing && S_SoundTestCanSequenceFade())
{ {
boolean unfaded = Music_DurationLeft("stereo_fade") > Music_FadeOutDuration("stereo_fade") * TICRATE / 1000;
// 1) You cannot cancel a fade once it has started // 1) You cannot cancel a fade once it has started
// 2) However, if the fade wasn't heard, switching // 2) However, if the fade wasn't heard, switching
// over restarts the fade // over just skips to the next song
if (!unfaded && Music_Suspended("stereo_fade")) if (Music_DurationLeft("stereo_fade") <= Music_FadeOutDuration("stereo_fade") * TICRATE / 1000)
{ {
Music_DelayEnd("stereo_fade", 0); if (Music_Suspended("stereo_fade"))
unfaded = true; {
S_UpdateSoundTestDef((currentMenu->menuitems[itemOn].mvar1 < 0), true, false);
}
} }
else
if (unfaded)
{ {
soundtest.tune ^= 1; soundtest.tune ^= 1;
Music_UnSuspend(S_SoundTestTune(0)); Music_UnSuspend(S_SoundTestTune(0));