codec_utils_opus_create_header
Description:
[ CCode ( cname = "gst_codec_utils_opus_create_header" ) ]
[ Version ( since = "1.8" ) ]
public Buffer codec_utils_opus_create_header (uint32 rate, uint8 channels, uint8 channel_mapping_family, uint8 stream_count, uint8 coupled_count, uint8[]? channel_mapping, uint16 pre_skip, int16 output_gain)
Creates OpusHead header from the given parameters.
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 Buffer containing the OpusHead.
|