[pulseaudio-discuss] pulseaudio API - is there an event for when a sink is added or removed?

Georg Chini georg at chini.tk
Tue Mar 10 12:54:59 PDT 2015


On 10.03.2015 20:46, Andrew Kelley wrote:
> What is the best way to detect when a sink is added, removed, or 
> changed? Must I call pa_context_get_sink_info_list on a set interval 
> and then examine the new list for changes from the old list?
>
You can use the subscription API to get notified on such events.
See http://freedesktop.org/software/pulseaudio/doxygen/subscribe.html


More information about the pulseaudio-discuss mailing list