<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><p style="margin:0;">At first I would like to take this chance to express my gratitude to PulseAudio dev. team and those warm-hearted members at this community  :)</p><p style="margin:0;"><br></p><p style="margin:0;">I have a minor question about calling pa_stream_drain()  for multiple streams at the same context. It seems I cannot issue this command </p><p style="margin:0;">for multiple streams at the same time : </p><p style="margin:0;"><br></p><p style="margin:0;">for ( int stream_index = 0 ; stream_index < 2 ; stream_index++)</p><p style="margin:0;">{</p><p style="margin:0;">    pa_operation* pa_op= pa_stream_drain<span style="white-space:pre">     </span>( pa_stream *  audio_stream[ stream_index ]  ,</p><p style="margin:0;">                my_pa_stream_success_cb_t, NULL );</p><p style="margin:0;"><br></p><p style="margin:0;">    while (pa_operation_get_state(pa_op) != PA_OPERATION_DONE) {</p><p style="margin:0;"><span style="white-space:pre">           </span>    sleep(1);</p><p style="margin:0;">    }</p><p style="margin:0;"><span style="white-space:pre"> </span></p><p style="margin:0;">}   </p><p style="margin:0;"><br></p><p style="margin:0;">How to wait for the done signal to pa_stream_drain() the next stream  efficiently  ?</p><div><br></div></div><br><br><span title="neteasefooter"><p> </p></span>