]> code.delx.au - pulseaudio/commit
protocol-native: Lower default minreq in low-latency scenarios
authorDavid Henningsson <david.henningsson@canonical.com>
Mon, 25 Mar 2013 08:20:15 +0000 (09:20 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Mon, 25 Mar 2013 13:44:34 +0000 (15:44 +0200)
commit5f326b705d8f7f0c14e7e0c7d7c2751f3a5ebe43
tree9f07c29d79d3847dae4649184cf0584a084f978e
parent2026c41be6f4e1a526c94c1368e5e528597df03a
protocol-native: Lower default minreq in low-latency scenarios

If minreq is not explicitly specified, it was always initialized to
20 ms (DEFAULT_PROCESS_MSEC). However when the total latency is not
much higher than 20 ms, this is way too high. Instead use
tlength/4 as a measure: this will give a decent sink_usec in all
modes (both traditional, adjust latency and early request modes).

This greatly improves PulseAudio's ability to ask for data in time
in low-latency scenarios.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/pulsecore/protocol-native.c