pub unsafe extern "C" fn pw_stream_flush(
stream: *mut pw_stream,
drain: bool,
) -> c_int
Expand description
Flush a stream. When \a drain is true, the drained callback will be called when all data is played or recorded. The stream can be resumed after the drain by setting it active again with \ref pw_stream_set_active(). A flush without a drain is mostly useful afer a state change to PAUSED, to flush any remaining data from the queues and the converters. RT safe.