[pulseaudio-discuss] pulseaudio API - is there an event for when a sink is added or removed?
superjoe30 at gmail.com
Wed Mar 11 15:15:10 PDT 2015
On Tue, Mar 10, 2015 at 12:54 PM, Georg Chini <georg at chini.tk> wrote:
> 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
Thank you for the quick response. This is exactly what I needed, and it's
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pulseaudio-discuss