- Fix memory leak in DMA sound after S_Shutdown()

- Make codec load use temp hunk memory instead of zone mem
- Fix sound issues with direct sound and game_restart (#4526)
This commit is contained in:
Thilo Schulz 2011-06-17 23:29:19 +00:00
parent f921cddc2b
commit a5f31084d4
10 changed files with 34 additions and 23 deletions

View file

@ -1776,10 +1776,10 @@ CL_Snd_Restart
Restart the sound subsystem
=================
*/
void CL_Snd_Restart(void)
void CL_Snd_Shutdown(void)
{
S_Shutdown();
S_Init();
cls.soundStarted = qfalse;
}
/*
@ -1793,7 +1793,8 @@ handles will be invalid
*/
void CL_Snd_Restart_f(void)
{
CL_Snd_Restart();
CL_Snd_Shutdown();
// sound will be reinitialized by vid_restart
CL_Vid_Restart_f();
}
@ -3350,7 +3351,7 @@ void CL_Shutdown( char *finalmsg ) {
CL_Disconnect( qtrue );
S_Shutdown();
CL_Snd_Shutdown();
CL_ShutdownRef();
CL_ShutdownUI();