From f50c5461c1166d24e2de66cf7a768b216f371abc Mon Sep 17 00:00:00 2001 From: deuce <> Date: Tue, 30 Sep 2008 05:18:18 +0000 Subject: [PATCH] Use an optimal number of 256-byte buffers for PortAudio playback (fixes stuttering problems) --- src/xpdev/xpbeep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xpdev/xpbeep.c b/src/xpdev/xpbeep.c index f1c56f31df..11b45f5546 100644 --- a/src/xpdev/xpbeep.c +++ b/src/xpdev/xpbeep.c @@ -362,8 +362,8 @@ BOOL xptone_open(void) , 1 /* Mono output */ , paUInt8 , S_RATE - , S_RATE/100 /* Buffer size is 1/100 of a second */ - , (S_RATE*15/2+1)/(S_RATE/100)+1 /* Enough buffers for all audio data */ + , 256 + , 0 , pa_api->ver >= 1900 ? NULL : portaudio_callback , &pawave) != paNoError) portaudio_device_open_failed=TRUE; -- GitLab