Resolve #281. (Might have problems with non-SDL interfaces, but definitely good for what we're shipping with.)

This commit is contained in:
toaster 2019-11-14 14:19:13 +00:00
parent 1f7e5aa150
commit 261041dc69
1 changed files with 3 additions and 0 deletions

View File

@ -2530,6 +2530,7 @@ void GameSounds_OnChange(void)
if (sound_disabled)
{
sound_disabled = false;
I_StartupSound(); // will return early if initialised
S_InitSfxChannels(cv_soundvolume.value);
S_StartSound(NULL, sfx_strpst);
}
@ -2550,6 +2551,7 @@ void GameDigiMusic_OnChange(void)
if (digital_disabled)
{
digital_disabled = false;
I_StartupSound(); // will return early if initialised
I_InitMusic();
S_StopMusic();
if (Playing())
@ -2592,6 +2594,7 @@ void GameMIDIMusic_OnChange(void)
if (midi_disabled)
{
midi_disabled = false;
I_StartupSound(); // will return early if initialised
I_InitMusic();
if (Playing())
P_RestoreMusic(&players[consoleplayer]);