Type Alias alsa::direct::pcm::MmapCapture
source · pub type MmapCapture<S> = MmapIO<S, Capture>;
Aliased Type§
struct MmapCapture<S> { /* private fields */ }
Implementations§
source§impl<S> MmapCapture<S>
impl<S> MmapCapture<S>
sourcepub fn iter(&mut self) -> CaptureIter<'_, S> ⓘ
pub fn iter(&mut self) -> CaptureIter<'_, S> ⓘ
Read samples from the kernel ringbuffer.
When the iterator is dropped or depleted, the read samples will be committed, i e, the kernel can then write data to the location again. So do this ASAP.