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