codecUtilsOpusParseHeader

Parses the OpusHead header.

bool
codecUtilsOpusParseHeader
(,
out uint rate
,
out ubyte channels
,,
out ubyte streamCount
,
out ubyte coupledCount
,
ref ubyte[] channelMapping
,
out ushort preSkip
,
out short outputGain
)

Parameters

header gst.buffer.Buffer

the OpusHead #GstBuffer

rate uint

the sample rate

channels ubyte

the number of channels

channelMappingFamily ubyte

the channel mapping family

streamCount ubyte

the number of independent streams

coupledCount ubyte

the number of stereo streams

channelMapping ubyte[]

the mapping between the streams

preSkip ushort

Pre-skip in 48kHz samples or 0

outputGain short

Output gain or 0

Return Value

Type: bool

true if parsing was successful, false otherwise.