On Tue, Apr 17, 2012 at 09:58:05PM +0300, Tanu Kaskinen wrote: > On Tue, 2012-04-17 at 10:51 -0500, Andrew Eikum wrote: > 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. > Bummer. Thank you for looking. > 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. > I'm working on a PulseAudio driver for Wine. One of the functions the driver needs to perform is a "Reset" which dumps all of the data sitting in the record buffer and resets the readable size to 0. I was hoping to use pa_stream_readable_size() in order to tell how much data is in the buffer ready to be read, but that seems incompatible with the requirement of dumping the data on Reset. Andrew