pub fn codec_utils_opus_parse_caps(
    caps: &CapsRef,
    channel_mapping: Option<&mut [u8; 256]>,
) -> Result<(u32, u8, u8, u8, u8), BoolError>
Expand description

Parses Opus caps and fills the different fields with defaults if possible.

§caps

the gst::Caps to parse the data from

§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