<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 10, 2015 at 12:54 PM, Georg Chini <span dir="ltr"><<a href="mailto:georg@chini.tk" target="_blank">georg@chini.tk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 10.03.2015 20:46, Andrew Kelley wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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?<br>
<br>
</blockquote></span>
You can use the subscription API to get notified on such events.<br>
See <a href="http://freedesktop.org/software/pulseaudio/doxygen/subscribe.html" target="_blank">http://freedesktop.org/<u></u>software/pulseaudio/doxygen/<u></u>subscribe.html</a></blockquote><div><br></div><div>Thank you for the quick response. This is exactly what I needed, and it's working beautifully.</div></div></div></div>