audioChannelPositionsToMask
fn
bool audioChannelPositionsToMask(gstaudio.types.AudioChannelPosition[] position, bool forceOrder, out ulong channelMask)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.
Parameters
position | The GstAudioChannelPositions |
forceOrder | Only consider the GStreamer channel order. |
channelMask | the output channel mask |
Returns
true if the channel positions are valid and could be converted.