diff options
-rw-r--r-- | src/heretic/s_sound.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/heretic/s_sound.c b/src/heretic/s_sound.c index 86483402..2deca19f 100644 --- a/src/heretic/s_sound.c +++ b/src/heretic/s_sound.c @@ -24,6 +24,7 @@ #include <stdlib.h> #include "doomdef.h" +#include "i_system.h" #include "m_random.h" #include "sounds.h" #include "s_sound.h" @@ -42,6 +43,7 @@ =============================================================================== */ +void S_ShutDown(void); boolean S_StopSoundID(int sound_id, int priority); static channel_t channel[MAX_CHANNELS]; @@ -500,6 +502,8 @@ void S_Init(void) } I_SetMusicVolume(snd_MusicVolume); S_SetMaxVolume(true); + + I_AtExit(S_ShutDown, true); } void S_GetChannelInfo(SoundInfo_t * s) |