From 74e373ee4440f7603ff9e86dc46b0772bb69af4c Mon Sep 17 00:00:00 2001 From: theoddone33 <> Date: Mon, 30 Apr 2001 20:09:08 +0000 Subject: [PATCH] Fix hang when switching between mono/stereo --- zsnes/src/linux/sdllink.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/zsnes/src/linux/sdllink.c b/zsnes/src/linux/sdllink.c index 3fdb87d6..eec46c45 100644 --- a/zsnes/src/linux/sdllink.c +++ b/zsnes/src/linux/sdllink.c @@ -360,11 +360,12 @@ int InitSound (void) const int freqtab[7] = { 8000, 11025, 22050, 44100, 16000, 32000, 48000 }; const int samptab[7] = { 64, 64, 128, 256, 128, 256, 256 }; - SDL_LockAudio(); /* wait for callback to finish */ SDL_CloseAudio(); - if (!SoundEnabled) return FALSE; + if (!SoundEnabled) { + return FALSE; + } PrevSoundQuality = SoundQuality; PrevStereoSound = StereoSound; @@ -393,8 +394,6 @@ int InitSound (void) } SDL_PauseAudio(0); - SDL_UnlockAudio(); - return TRUE; }