Skip to main content

encoder_header

Function encoder_header 

Source
pub fn encoder_header(
    sample_rate: u32,
    channels: u16,
    cbr_kbps: u32,
) -> Result<FrameHeader>
Expand description

Build the frame header from the input’s sample rate, channel count, and the configured CBR bitrate (VBR overrides the bitrate per frame later).

§Errors

Error::Unsupported for a sample rate outside the nine MPEG Layer III rates.