[pulseaudio-discuss] [PATCH 4/6] PROTOCOL: Added PA_COMMAND_SET_(SINK|SOURCE)_LATENCY_OFFSET
Tanu Kaskinen
tanuk at iki.fi
Thu Jul 14 18:29:20 UTC 2016
On Sat, 2016-01-23 at 12:31 +1100, Chris Billington wrote:
> Bumped protocol version number to 31.
As time has passed by, the version should now be bumped to 32.
> These commands allow applications to set the latency offset of individual
> sources and sinks, using functionality introduced in the last commit.
>
> This is useful for setting the latency offset of a source or sink that is not
> tied to a particular port, such as a null sink being used to capture output
> and stream it over a network. If the application doing this knows the network
> latency, then it can use these new protocol commands to inform PulseAudio of
> it, so that video and audio may remain in sync.
I noticed that neither this patch nor any other patch implements
querying the sink/source latency offset. I think it's pretty important
to be able to also query the current offsets, if there's a mechanism
for setting the offsets.
Adding the querying support should be pretty simple. Basically you just
need to add a new field to the pa_sink/source_info struct and send the
value in the GET_SINK/SOURCE_INFO command. pactl should be updated too
to print the value in the "list sinks/sources" commands.
This patch looks good otherwise.
--
Tanu
More information about the pulseaudio-discuss
mailing list