mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
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:
parent
658e10d5ea
commit
11aca64044
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue