From 2030af5d172802ddc2c74dfe4962a220237ebd20 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Fri, 21 May 2010 05:14:52 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@48429 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- plugins/dfsound/sdl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins') diff --git a/plugins/dfsound/sdl.c b/plugins/dfsound/sdl.c index 31cf5e1d..45ccba2d 100644 --- a/plugins/dfsound/sdl.c +++ b/plugins/dfsound/sdl.c @@ -21,11 +21,11 @@ #include "externals.h" #include -#define BUFFER_SIZE 11025 +#define BUFFER_SIZE 22050 short *pSndBuffer = NULL; -int iBufSize = 0; -volatile int iReadPos = 0, iWritePos = 0; +int iBufSize = 0; +volatile int iReadPos = 0, iWritePos = 0; static void SOUND_FillAudio(void *unused, Uint8 *stream, int len) { short *p = (short *)stream; @@ -71,7 +71,7 @@ void SetupSound(void) { spec.freq = 44100; spec.format = AUDIO_S16SYS; spec.channels = iDisStereo ? 1 : 2; - spec.samples = 1024; + spec.samples = 512; spec.callback = SOUND_FillAudio; if (SDL_OpenAudio(&spec, NULL) < 0) { -- cgit v1.2.3