[pulseaudio-discuss] Event on sink_input changing sink

Lennart Poettering lennart at poettering.net
Thu Aug 20 03:55:20 PDT 2009


On Thu, 20.08.09 17:25, Jason Taylor (killerkiwi2005 at gmail.com) wrote:

> Is there an event that occurs when a sink_input changes sinks?
> 
> Seems like there should be PA_SUBSCRIPTION_EVENT_SINK_INPUT but that
> dosn't seem to happen?

PA_SUBSCRIPTION_EVENT_SINK_INPUT|PA_SUBSCRIPTION_EVENT_CHANGE is
triggered at the end of pa_sink_input_finish_move().

Note that subscription events are queued asynchronously and coalesced
and everything.

If you want synchronous notifications you might want to hook into
PA_CORE_HOOK_SINK_INPUT_MOVE_FINISH or
PA_CORE_HOOK_SINK_INPUT_MOVE_START.

What do you want to do?

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4



More information about the pulseaudio-discuss mailing list