Commit 11c5049f authored by R.M's avatar R.M Committed by Ilkka Ollakka

pulseaudio: increase buffer so some usb cards don't drop samples

Signed-off-by: default avatarIlkka Ollakka <ileoo@videolan.org>
(cherry picked from commit 7aaf63551d1e87d3219acd5a3cec1fa25250bfe3)
parent 8f47014f
......@@ -196,14 +196,15 @@ static int Open ( vlc_object_t *p_this )
}
/* Reduce overall latency to 200mS to reduce audible clicks
* Also pulse minreq and internal buffers are now 20mS which reduces resampling
* Also pulse minreq and internal buffers are now 100mS which reduces resampling
* but still shouldn't drop samples with some usb sound cards
*/
a.tlength = pa_bytes_per_second(&ss)/5;
a.maxlength = a.tlength * 2;
a.prebuf = a.tlength / 2;
a.minreq = a.tlength / 10;
a.minreq = a.tlength / 2;
/* Buffer size is 20mS */
/* Buffer size is 100mS */
p_sys->buffer_size = a.minreq;
/* Initialise the speaker map setup above */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment