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

Andrew Kelley 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
working beautifully.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20150311/da489297/attachment.html>

More information about the pulseaudio-discuss mailing list