[pulseaudio-discuss] pa_stream_connect_playback bad state

Gian Lorenzo Meocci glmeocci at gmail.com
Thu Feb 18 06:21:49 PST 2010


thanks a lot you are right

On Thu, Feb 18, 2010 at 3:17 PM, Tanu Kaskinen <tanuk at iki.fi> wrote:
> to, 2010-02-18 kello 10:43 +0100, Gian Lorenzo Meocci kirjoitti:
>> when I call pa_stream_connect_playback I always obtain bad state. Why?
>
> The connection to the server hasn't been properly established yet when
> you call pa_stream_connect_playback(). Right after calling
> pa_context_connect() you should register a callback with
> pa_context_set_state_callback() that gets called whenever the context
> state changes. Then run the mainloop until the state becomes
> PA_CONTEXT_READY or PA_CONTEXT_FAILED, see pa_context_get_state().
>
> Hope this helps.
>
> --
> Tanu Kaskinen
>
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at mail.0pointer.de
> https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss
>



-- 
Ing. Gian Lorenzo Meocci
http://www.meocci.it



More information about the pulseaudio-discuss mailing list