ahh - that a be why. <div>Thx Colin</div><div><br></div><div>Conor</div><div><br><br><div class="gmail_quote">On Wed, Jan 27, 2010 at 7:27 PM, Colin Guthrie <span dir="ltr"><<a href="mailto:gmane@colin.guthr.ie">gmane@colin.guthr.ie</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">'Twas brillig, and Forwind info at 27/01/10 19:08 did gyre and gimble:<br>
<div><div></div><div class="h5">> Hi all,<br>
><br>
> I'm building a client app using the async api. For now I have subscribed<br>
> to two events PA_SUBSCRIPTION_EVENT_SINK and<br>
> PA_SUBSCRIPTION_EVENT_SINK_INPUT. i noticed one cancels the other out ?<br>
><br>
> i.e. if i subscribe to the straight sink_event after subscribing to<br>
> sink_input I don't get any notification of the sink_input only generic<br>
> sink event notifications . Similarly if I subscribe to the sink_input<br>
> after the subscribing to sink_events i don't get any sink_event<br>
> notifications. I'm a missing something here ?<br>
<br>
</div></div>You should only call the subscribe function once, passing in a "bitwise<br>
or" of all the events you want to subscribe to.<br>
<br>
e.g.:<br>
<a href="http://colin.guthr.ie/git/kdemultimedia/tree/kmix/mixer_pulse.cpp?h=pulse#n554" target="_blank">http://colin.guthr.ie/git/kdemultimedia/tree/kmix/mixer_pulse.cpp?h=pulse#n554</a><br>
<br>
HTHs<br>
<br>
Col<br>
<br>
--<br>
<br>
Colin Guthrie<br>
gmane(at)<a href="http://colin.guthr.ie" target="_blank">colin.guthr.ie</a><br>
<a href="http://colin.guthr.ie/" target="_blank">http://colin.guthr.ie/</a><br>
<br>
Day Job:<br>
Tribalogic Limited [<a href="http://www.tribalogic.net/" target="_blank">http://www.tribalogic.net/</a>]<br>
Open Source:<br>
Mandriva Linux Contributor [<a href="http://www.mandriva.com/" target="_blank">http://www.mandriva.com/</a>]<br>
PulseAudio Hacker [<a href="http://www.pulseaudio.org/" target="_blank">http://www.pulseaudio.org/</a>]<br>
Trac Hacker [<a href="http://trac.edgewall.org/" target="_blank">http://trac.edgewall.org/</a>]<br>
<br>
_______________________________________________<br>
pulseaudio-discuss mailing list<br>
<a href="mailto:pulseaudio-discuss@mail.0pointer.de">pulseaudio-discuss@mail.0pointer.de</a><br>
<a href="https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss" target="_blank">https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss</a><br>
</blockquote></div><br></div>