pub trait AudioSource {
// Required methods
fn format(&self) -> PcmFormat;
fn read<'b>(&mut self, out: &'b mut [u8]) -> Result<PcmBlock<'b>>;
}Expand description
Produces fixed-size blocks of PCM into caller memory.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".