pub struct RawProducer { /* private fields */ }Expand description
Handle for the real-time callback side. Only performs nonblocking pushes.
Implementations§
Source§impl RawProducer
impl RawProducer
Sourcepub fn push_slice(&mut self, samples: &[f32]) -> usize
pub fn push_slice(&mut self, samples: &[f32]) -> usize
Push an interleaved sample slice without blocking.
Writes as many samples as fit, drops the rest, and adds them to the overflow counter. Returns the number of samples written. Never blocks.
Sourcepub fn overflow_count(&self) -> u64
pub fn overflow_count(&self) -> u64
Total number of samples dropped so far.
Auto Trait Implementations§
impl !Freeze for RawProducer
impl !RefUnwindSafe for RawProducer
impl !Sync for RawProducer
impl Send for RawProducer
impl Unpin for RawProducer
impl UnsafeUnpin for RawProducer
impl UnwindSafe for RawProducer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more