[pulseaudio-discuss] pulseaudio API - what's the difference between latency and configured_latency?

Arun Raghavan arun at accosted.net
Sun Mar 8 20:20:24 PDT 2015


On 9 March 2015 at 04:47, Andrew Kelley <superjoe30 at gmail.com> wrote:
> http://freedesktop.org/software/pulseaudio/doxygen/structpa__sink__info.html#a872cc1f311330e161f9b7990200b8b21
>
> latency: Length of queued audio in the output buffer.
> configured_latency: The latency this device has been configured to.
>
> Does this mean that if I repeatedly query the sink info, the latency will
> change, but the configured_latency will not change?

Short answer: yes

Long answer: what latency the sink is configured for is a function of
what the sink inputs connected to it have requested. So as sink inputs
come and go, the configured latency might change. You can see how this
behaves in pactl list sinks output.

-- Arun


More information about the pulseaudio-discuss mailing list