summaryrefslogtreecommitdiff
path: root/src/heretic
diff options
context:
space:
mode:
authorSimon Howard2008-09-25 21:14:05 +0000
committerSimon Howard2008-09-25 21:14:05 +0000
commit2fb5056878a2d5a29d8bb9597e2f458b46862ddd (patch)
tree00c0be0aebf721ee82842297fc80810d58158bc6 /src/heretic
parentb05a3f9448a690bf1d6805ed20081227921f64d9 (diff)
downloadchocolate-doom-2fb5056878a2d5a29d8bb9597e2f458b46862ddd.tar.gz
chocolate-doom-2fb5056878a2d5a29d8bb9597e2f458b46862ddd.tar.bz2
chocolate-doom-2fb5056878a2d5a29d8bb9597e2f458b46862ddd.zip
Shutdown sound at exit, so that the music does not continue to play at
the ENDOOM screen. Subversion-branch: /branches/raven-branch Subversion-revision: 1287
Diffstat (limited to 'src/heretic')
-rw-r--r--src/heretic/s_sound.c4
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)