Skip to main content

encode

Function encode 

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

Encode samples into a valid native FLAC byte stream (the .flac form).

ยงErrors

Returns FlacError::InvalidInput if the channel vectors disagree in length, the bit depth or channel count is out of range, or there are no samples.