pulsesink: writeable size will increase bigger than total buffer size if no data feed to pulse.
Submitted by kevin
Is it reasonable below writeable size will increase bigger than total buffer size if no data feed to pulse?
pbuf->m_writable = pa_stream_writable_size (pbuf->stream);
It will cause our use case fail. But alsasink no such kind of issue. Per my understand, the total ring buffer size is the max value of the writeable size. But pulse audio will increase the writeable size without limitation if pulse un-corked.
Our use case is send EOS to audio pipeline when rewind playback. The pulse will be un-corked as need provided clock. And the writeable size will increase. When change to normal playback, the writeable size will huge and consume large mount of audio data. It will cause pause pipeline fail as audio buffer come to audio sink per one second (audio sample duration is 1 second) and audio sink haven't blocked on audio ring buffer commit function.