summaryrefslogtreecommitdiff
path: root/source/snd_main.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2010-05-09 18:13:04 +0000
committerAndrey Nazarov <skuller@skuller.net>2010-05-09 18:13:04 +0000
commitc877967be5689e19ae50ef7e241535d0e7b83a59 (patch)
tree2fde7c255d05d94538413110a48c3120cf7395d7 /source/snd_main.c
parent633c832e43c42bce0a685a93acfc3937c84ed6bb (diff)
Put S_StopAllSounds back into S_Init to prevent crash due to uninitialized playsound list.
Enable setting AL_MIN_GAIN for listener entity.
Diffstat (limited to 'source/snd_main.c')
-rw-r--r--source/snd_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/snd_main.c b/source/snd_main.c
index 1c60fc4..9c38b13 100644
--- a/source/snd_main.c
+++ b/source/snd_main.c
@@ -204,8 +204,6 @@ void S_Init( void ) {
}
}
- S_ClearBuffer();
-
Com_Printf( "sound sampling rate: %i\n", dma.speed );
s_started = SS_DMA;
}
@@ -218,6 +216,9 @@ void S_Init( void ) {
Cmd_Register( c_sound );
+ // init playsound list
+ S_StopAllSounds();
+
S_InitScaletable();
num_sfx = 0;