codecUtilsOpusParseHeader
fn
bool codecUtilsOpusParseHeader(gst.buffer.Buffer header, out uint rate, out ubyte channels, out ubyte channelMappingFamily, out ubyte streamCount, out ubyte coupledCount, ref ubyte[] channelMapping, out ushort preSkip, out short outputGain)Parses the OpusHead header.
Parameters
header | the OpusHead #GstBuffer |
rate | the sample rate |
channels | the number of channels |
channelMappingFamily | the channel mapping family |
streamCount | the number of independent streams |
coupledCount | the number of stereo streams |
channelMapping | the mapping between the streams |
preSkip | Pre-skip in 48kHz samples or 0 |
outputGain | Output gain or 0 |
Returns
true if parsing was successful, false otherwise.