Skip to main content

decode

Function decode 

Source
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.