pub fn decode(data: &[u8], format: AudioFormat) -> AudioResult<AudioFrame>Expand description
Decode encoded bytes into a PCM16 AudioFrame.
Currently supports WAV and raw PCM16. Other formats return
AudioError::Codec.
pub fn decode(data: &[u8], format: AudioFormat) -> AudioResult<AudioFrame>Decode encoded bytes into a PCM16 AudioFrame.
Currently supports WAV and raw PCM16. Other formats return
AudioError::Codec.