pub trait Decoder: Send + Sync {
// Required methods
fn decode(&mut self, data: &[u8]) -> PcmBuf;
fn sample_rate(&self) -> u32;
fn channels(&self) -> u16;
}Required Methods§
Sourcefn sample_rate(&self) -> u32
fn sample_rate(&self) -> u32
Get the sample rate of the decoded audio