mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 14:41:55 +00:00
- SW: Stop all sound before starting a cutscene
This commit is contained in:
parent
dff86c7e38
commit
071a364d83
2 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue