From e7c240bf7fc20967b7576c3deaa5dc5c07179a1f Mon Sep 17 00:00:00 2001 From: James R Date: Fri, 29 Dec 2023 07:36:08 -0800 Subject: [PATCH] Stereo Mode: turn on SEQ after the song has looped past its limit -> next track --- src/menus/transient/sound-test.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/menus/transient/sound-test.c b/src/menus/transient/sound-test.c index 0bd62b307..26bb86f4b 100644 --- a/src/menus/transient/sound-test.c +++ b/src/menus/transient/sound-test.c @@ -83,18 +83,17 @@ static void M_SoundTestSeq(INT32 choice) 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 // 2) However, if the fade wasn't heard, switching - // over restarts the fade - if (!unfaded && Music_Suspended("stereo_fade")) + // over just skips to the next song + if (Music_DurationLeft("stereo_fade") <= Music_FadeOutDuration("stereo_fade") * TICRATE / 1000) { - Music_DelayEnd("stereo_fade", 0); - unfaded = true; + if (Music_Suspended("stereo_fade")) + { + S_UpdateSoundTestDef((currentMenu->menuitems[itemOn].mvar1 < 0), true, false); + } } - - if (unfaded) + else { soundtest.tune ^= 1; Music_UnSuspend(S_SoundTestTune(0));