[pulseaudio-tickets] [PulseAudio] #369: Uncorking a stream sometimes doesnt produce a playback started event

PulseAudio trac-noreply at tango.0pointer.de
Wed Sep 24 14:13:28 PDT 2008


#369: Uncorking a stream sometimes doesnt produce a playback started event
---------------------+------------------------------------------------------
 Reporter:  omajid   |       Owner:  lennart
     Type:  defect   |      Status:  new    
 Priority:  normal   |   Milestone:         
Component:  clients  |    Severity:  normal 
 Keywords:           |  
---------------------+------------------------------------------------------
 After attaching a stream started callback using
 pa_stream_set_started_callback and uncorking the stream, the callback
 isn't always called.

 To see the problem, compile and run the attached test case:

 {{{
 ./play-simple a_sound_file.wav
 }}}


 It printf's "stream_started callback" every time the stream's started
 callback is invoked.

 Output on my machine:
 {{{
 stream_started callback
 corking
 uncorking
 stream_underflow callback
 }}}


 Note that only one stream_started callback is printed, the callback isnt
 invoked after uncorking.

 However, spawning multiple clients to connect to PulseAudio causes a
 different result.

 Running the test case as:
 {{{
 for i in 1 2; do ./play-simple new.wav & done
 }}}


 Produces:

 {{{
 stream_started callback
 stream_started callback
 corking
 corking
 uncorking
 uncorking
 stream_started callback
 stream_underflow callback
 stream_underflow callback
 }}}


 This time one stream_started callback is produced after uncorking.

 The correct behaviour would be to always call the stream's started
 callback after the stream is uncorked.

-- 
Ticket URL: <http://pulseaudio.org/ticket/369>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server


More information about the pulseaudio-bugs mailing list