Merge branch 'public-music-cleanup-st' into 'music-clean'

Apply music code cleanup changes

See merge request SteelTitanium/SRB2!1
This commit is contained in:
Steel Titanium 2018-10-20 14:12:58 -04:00
commit ea4ce70fde

View file

@ -1584,6 +1584,7 @@ static void Command_Tunes_f(void)
static void Command_RestartAudio_f(void)
{
S_StopMusic();
S_StopSounds();
I_ShutdownMusic();
I_ShutdownSound();
I_StartupSound();
@ -1592,8 +1593,7 @@ static void Command_RestartAudio_f(void)
// These must be called or no sound and music until manually set.
I_SetSfxVolume(cv_soundvolume.value);
I_SetDigMusicVolume(cv_digmusicvolume.value);
I_SetMIDIMusicVolume(cv_midimusicvolume.value);
S_SetMusicVolume(cv_digmusicvolume.value, cv_midimusicvolume.value);
if (Playing()) // Gotta make sure the player is in a level
P_RestoreMusic(&players[consoleplayer]);
}