pub fn codec_utils_opus_parse_header(
header: &BufferRef,
channel_mapping: Option<&mut [u8; 256]>,
) -> Result<(u32, u8, u8, u8, u8, u16, i16), BoolError>
Expand description
Parses the OpusHead header.
§header
the OpusHead gst::Buffer
§Returns
true
if parsing was successful, false
otherwise.
§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