snd_sdl.c: remove superfluous SDL_PauseAudio() and SDL_LockAudio() calls from the Shutdown() proc.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1173 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2015-02-27 14:01:23 +00:00
parent 658e10d5ea
commit 11aca64044

View file

@ -195,12 +195,10 @@ void SNDDMA_Shutdown (void)
if (shm) if (shm)
{ {
Con_Printf ("Shutting down SDL sound\n"); Con_Printf ("Shutting down SDL sound\n");
SDL_PauseAudio(1);
SDL_LockAudio ();
SDL_CloseAudio(); SDL_CloseAudio();
SDL_QuitSubSystem(SDL_INIT_AUDIO);
if (shm->buffer) if (shm->buffer)
free (shm->buffer); free (shm->buffer);
SDL_QuitSubSystem(SDL_INIT_AUDIO);
shm->buffer = NULL; shm->buffer = NULL;
shm = NULL; shm = NULL;
} }