[pulseaudio-discuss] A few questions about termination

Andreas Öman andreas at lonelycoder.com
Fri Jul 24 05:10:40 PDT 2009


Lennart Poettering wrote:
> On Fri, 24.07.09 11:17, Andreas Öman (andreas at lonelycoder.com) wrote:
> 
>> Second, If I chose 'terminate' from pavucontrol on my application's
>> stream the app receives an PA_STREAM_FAILED event. I would expect
>> it to be PA_STREAM_TERMINATED.
> 
> The PA_STREAM_TERMINATED state is only entered if you locally change
> terminate a stream by calling pa_stream_disconnect(). Any error or
> externally triggered state change is forward to you as a
> PA_STREAM_FAILED state.

Ok, so my mediaplayer's current behavior is to pause playback
when the PA_STREAM_FAILED event occurs and upon a users request
to unpause playback it will try to create a new stream.
Does this make sense?




More information about the pulseaudio-discuss mailing list