Emptying a record stream's buffer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2012-04-17 at 10:51 -0500, Andrew Eikum wrote:
> Hi,
> 
> 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
bug.

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.

-- 
Tanu



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux