- SW: Stop all sound before starting a cutscene

This commit is contained in:
Christoph Oelckers 2020-02-14 00:52:57 +01:00
parent dff86c7e38
commit 071a364d83
2 changed files with 3 additions and 0 deletions

View file

@ -2178,6 +2178,7 @@ void EndGameSequence(void)
{
SWBOOL anim_ok = TRUE;
//FadeOut(0, 5);
StopSound();
if ((adult_lockout || Global_PLock) && FinishAnim == ANIM_SUMO)
anim_ok = FALSE;

View file

@ -946,12 +946,14 @@ SWBOOL PlaySong(const char* mapname, const char* song_file_name, int cdaudio_tra
void StopSound(void)
{
// This gets also called on shutdown.
StopAmbientSound();
if (soundEngine) soundEngine->StopAllChannels();
Mus_Stop();
}
void StopFX()
{
StopAmbientSound();
if (soundEngine) soundEngine->StopAllChannels();
}