audioChannelPositionsToMask

Convert the position array of channels channels to a bitmask.

If force_order is true it additionally checks if the channels are in the order required by GStreamer.

bool
audioChannelPositionsToMask

Parameters

position gstaudio.types.AudioChannelPosition[]

The GstAudioChannelPositions

forceOrder bool

Only consider the GStreamer channel order.

channelMask ulong

the output channel mask

Return Value

Type: bool

true if the channel positions are valid and could be converted.