Skip to main content

encode_ogg

Function encode_ogg 

Source
pub fn encode_ogg(audio: &FlacAudio) -> Result<Vec<u8>, FlacError>
Expand description

Encode samples into a FLAC stream wrapped in the Ogg container (the .oga form).

The audio is encoded identically to encode; only the container differs. Reading is symmetric: decode auto-detects either container, so there is no separate Ogg decode function.

ยงErrors

Returns FlacError::InvalidInput under the same conditions as encode.