mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Stereo Mode: turn on SEQ after the song has looped past its limit -> next track
This commit is contained in:
parent
076cea7047
commit
e7c240bf7f
1 changed files with 7 additions and 8 deletions
|
|
@ -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));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue