Skip to main content

encode

Function encode 

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