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

PulseAudio: force minreq to less than half tlength (refs #7827)

This should work-around distorsion due to excessively short latency
computation in PulseAudio, e.g. NVIDIA HDMI Audio.

In the longer term, VLC should probably set minreq to 40ms and tlength
to a larger value or even -1. But that would require more testing.
parent 22faed61
......@@ -791,7 +791,7 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
* TODO? tlength could be adaptively increased to reduce wakeups. */
attr.tlength = pa_usec_to_bytes(AOUT_MIN_PREPARE_TIME, &ss);
attr.prebuf = 0; /* trigger manually */
attr.minreq = -1;
attr.minreq = attr.tlength / 3;
attr.fragsize = 0; /* not used for output */
sys->stream = NULL;
......
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