- fixed: when deactivating the app, pausing the sound system should not depend on the game's internal pause state.

All this tells is that the gameplay was halted. Sound was not stopped when the user either minimized or tabbed away in the in-game menu.

This commit had to be reapplied because it got lost in a backend update.
This commit is contained in:
Christoph Oelckers 2022-11-11 18:40:36 +01:00
parent 21d4aae182
commit e3d16d254d

View file

@ -1829,8 +1829,6 @@ void S_SetSoundPaused(int state)
}
if ((state || i_soundinbackground) && !pauseext)
{
if (paused == 0)
{
S_ResumeSound(true);
if (GSnd != nullptr)
@ -1838,10 +1836,7 @@ void S_SetSoundPaused(int state)
GSnd->SetInactive(SoundRenderer::INACTIVE_Active);
}
}
}
else
{
if (paused == 0)
{
S_PauseSound(false, true);
if (GSnd != nullptr)
@ -1851,7 +1846,6 @@ void S_SetSoundPaused(int state)
SoundRenderer::INACTIVE_Mute);
}
}
}
}