diff options
Diffstat (limited to 'src/client/snd_dma.c')
-rw-r--r-- | src/client/snd_dma.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/snd_dma.c b/src/client/snd_dma.c index 9ff76503..fd6edf03 100644 --- a/src/client/snd_dma.c +++ b/src/client/snd_dma.c @@ -407,9 +407,8 @@ void S_Base_BeginRegistration( void ) { if (s_numSfx == 0) { SND_setup(); - s_numSfx = 0; - Com_Memset( s_knownSfx, 0, sizeof( s_knownSfx ) ); - Com_Memset(sfxHash, 0, sizeof(sfx_t *)*LOOP_HASH); + Com_Memset(s_knownSfx, '\0', sizeof(s_knownSfx)); + Com_Memset(sfxHash, '\0', sizeof(sfx_t *) * LOOP_HASH); S_Base_RegisterSound("sound/feedback/hit.wav", qfalse); // changed to a sound in baseq3 } @@ -1483,8 +1482,10 @@ void S_Base_Shutdown( void ) { } SNDDMA_Shutdown(); + SND_shutdown(); s_soundStarted = 0; + s_numSfx = 0; Cmd_RemoveCommand("s_info"); } |