From 16f5357770a3ec43c2ba1200274e0b52048d3fbc Mon Sep 17 00:00:00 2001 From: colin Date: Thu, 24 Oct 2002 18:13:24 +0000 Subject: [PATCH] Change SDL_(Un)lockAudio to PauseAudio() (works better) checked by Arpi git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7898 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libao2/ao_sdl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libao2/ao_sdl.c b/libao2/ao_sdl.c index cac6a71bb0..6fdd52cb16 100644 --- a/libao2/ao_sdl.c +++ b/libao2/ao_sdl.c @@ -258,7 +258,7 @@ static void audio_pause() { //printf("SDL: audio_pause called!\n"); - SDL_LockAudio(); + SDL_PauseAudio(1); } @@ -266,7 +266,7 @@ static void audio_pause() static void audio_resume() { //printf("SDL: audio_resume called!\n"); - SDL_UnlockAudio(); + SDL_PauseAudio(0); }