pub fn encode(frame: &AudioFrame, format: AudioFormat) -> AudioResult<Bytes>Expand description
Encode an AudioFrame to the target format.
Currently supports WAV and raw PCM16. Other formats return
AudioError::Codec.
pub fn encode(frame: &AudioFrame, format: AudioFormat) -> AudioResult<Bytes>Encode an AudioFrame to the target format.
Currently supports WAV and raw PCM16. Other formats return
AudioError::Codec.