Struct Audio Consumer
pub struct AudioConsumer { /* private fields */ }Expand description
Unique consumer. Only one thread may pop; teardown follows callback stop.
Implementations§
§impl AudioConsumer
impl AudioConsumer
pub fn producer_retired(&self) -> bool
pub fn producer_retired(&self) -> bool
True after the unique producer has been dropped. It cannot be resurrected; no later frames can be published. Already queued frames remain readable. This acquire snapshot is allocation/lock/I/O free, but endpoint Drop itself may deallocate and must follow callback shutdown. Leaked producers never retire and cannot establish this stopped-input proof.
pub fn channels(&self) -> usize
pub fn capacity_frames(&self) -> usize
pub fn queued_frames(&self) -> usize
pub fn queued_frames(&self) -> usize
Snapshot available frames. A concurrent producer can publish more later.