pub fn codec_utils_opus_create_header(
    rate: u32,
    channels: u8,
    channel_mapping_family: u8,
    stream_count: u8,
    coupled_count: u8,
    channel_mapping: &[u8],
    pre_skip: u16,
    output_gain: i16
) -> Result<Buffer, BoolError>
Expand description

Creates OpusHead header from the given parameters.

§rate

the sample rate

§channels

the number of channels

§channel_mapping_family

the channel mapping family

§stream_count

the number of independent streams

§coupled_count

the number of stereo streams

§channel_mapping

the mapping between the streams

§pre_skip

Pre-skip in 48kHz samples or 0

§output_gain

Output gain or 0

§Returns

The gst::Buffer containing the OpusHead.