diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-05-21 05:14:52 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-05-21 05:14:52 +0000 |
| commit | 2030af5d172802ddc2c74dfe4962a220237ebd20 (patch) | |
| tree | b83b71c1391fd9c746a1eb0fad050b3d4f505ff8 /plugins | |
| parent | f0684f680a9d2611b3854b72c356c6f3354b65c9 (diff) | |
| download | pcsxr-2030af5d172802ddc2c74dfe4962a220237ebd20.tar.gz | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@48429 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/dfsound/sdl.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 <SDL.h> -#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) { |
