Struct Audio Producer
pub struct AudioProducer { /* private fields */ }Expand description
Unique producer. Only one thread may push; teardown follows callback stop.
Implementations§
§impl AudioProducer
impl AudioProducer
pub fn channels(&self) -> usize
pub fn capacity_frames(&self) -> usize
pub fn clear(&mut self, consumer: &mut AudioConsumer) -> Result<(), RingError>
pub fn clear(&mut self, consumer: &mut AudioConsumer) -> Result<(), RingError>
Discard queued frames while exclusively borrowing both matching endpoints. Stop and join endpoint users before reclaiming these borrows for a seek. A mismatched consumer rejects without modifying either queue.