Function gstreamer_pbutils::functions::codec_utils_opus_create_caps
source · pub fn codec_utils_opus_create_caps(
rate: u32,
channels: u8,
channel_mapping_family: u8,
stream_count: u8,
coupled_count: u8,
channel_mapping: &[u8],
) -> Result<Caps, BoolError>
Expand description
Creates Opus caps 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
§Returns
The gst::Caps
, or None
if the parameters would lead to
invalid Opus caps.