Commit 39b85ca6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

PulseAudio: increase buffer size to max VLC can do

This suppresses most hiccups. But it also decreases precision to
slightly noticeable levels: about +/-150ms here. For reference, our
audio output core target is +/-40ms.
parent e5e27586
...@@ -347,8 +347,8 @@ static int Open(vlc_object_t *obj) ...@@ -347,8 +347,8 @@ static int Open(vlc_object_t *obj)
const uint32_t byterate = pa_bytes_per_second(&ss); const uint32_t byterate = pa_bytes_per_second(&ss);
struct pa_buffer_attr attr; struct pa_buffer_attr attr;
/* no point in larger buffers on PA side than VLC */ /* no point in larger buffers on PA side than VLC */
attr.maxlength = byterate * AOUT_MAX_ADVANCE_TIME / CLOCK_FREQ; attr.maxlength = -1;
attr.tlength = byterate * AOUT_MAX_PREPARE_TIME / CLOCK_FREQ; attr.tlength = byterate * AOUT_MAX_ADVANCE_TIME / CLOCK_FREQ;
attr.prebuf = byterate * AOUT_MIN_PREPARE_TIME / CLOCK_FREQ; attr.prebuf = byterate * AOUT_MIN_PREPARE_TIME / CLOCK_FREQ;
attr.minreq = -1; attr.minreq = -1;
attr.fragsize = 0; /* not used for output */ attr.fragsize = 0; /* not used for output */
......
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