Function audio_streams::capture::async_read_capture_buffer
source · pub async fn async_read_capture_buffer<F>(
stream: &mut dyn AsyncCaptureBufferStream,
f: F,
ex: &dyn AudioStreamsExecutor
) -> Result<(), BoxError>
Expand description
Call f
with a AsyncCaptureBuffer
, and trigger the buffer done call back after. f
can read
the capture data from the given AsyncCaptureBuffer
.
This cannot be a trait method because trait methods with generic parameters are not object safe.