pub trait Decoder: Send {
// Required methods
fn set_header(&mut self, header: &CodecHeader) -> Result<SampleFormat>;
fn decode(&mut self, data: &mut Vec<u8>) -> Result<bool>;
}Expand description
Audio decoder trait — matches the C++ Decoder interface.
Required Methods§
Sourcefn set_header(&mut self, header: &CodecHeader) -> Result<SampleFormat>
fn set_header(&mut self, header: &CodecHeader) -> Result<SampleFormat>
Initialize the decoder from a codec header. Returns the sample format.