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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux