[pulseaudio-discuss] Emptying a record stream's buffer
tanuk at iki.fi
Tue Apr 17 11:58:05 PDT 2012
On Tue, 2012-04-17 at 10:51 -0500, Andrew Eikum wrote:
> I'm trying to take a record stream which has been recording for some
> time, and empty its buffer. I'm especially interested in causing the
> return value from pa_stream_readable_size() to become 0.
> I've attached a test program here which uses pa_stream_flush(). The
> documentation for pa_stream_flush() says, "This discards any audio in
> the buffer," but it doesn't actually seem to work for record streams.
> Any hints?
It seems that pa_stream_flush() will only throw away the server-side
stream buffer. Data at client side is not touched. This looks like a
May I ask what you're trying to achieve? It's not immediately obvious to
me how pa_stream_flush() could be useful for record streams at all.
More information about the pulseaudio-discuss