Skip to content
Snippets Groups Projects
Commit f50c5461 authored by deuce's avatar deuce
Browse files

Use an optimal number of 256-byte buffers for PortAudio playback

(fixes stuttering problems)
parent 69c0b6b2
Branches
Tags
No related merge requests found
...@@ -362,8 +362,8 @@ BOOL xptone_open(void) ...@@ -362,8 +362,8 @@ BOOL xptone_open(void)
, 1 /* Mono output */ , 1 /* Mono output */
, paUInt8 , paUInt8
, S_RATE , S_RATE
, S_RATE/100 /* Buffer size is 1/100 of a second */ , 256
, (S_RATE*15/2+1)/(S_RATE/100)+1 /* Enough buffers for all audio data */ , 0
, pa_api->ver >= 1900 ? NULL : portaudio_callback , pa_api->ver >= 1900 ? NULL : portaudio_callback
, &pawave) != paNoError) , &pawave) != paNoError)
portaudio_device_open_failed=TRUE; portaudio_device_open_failed=TRUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment