audioChannelPositionsToMask

fnbool 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

positionThe GstAudioChannelPositions
forceOrderOnly consider the GStreamer channel order.
channelMaskthe output channel mask

Returns

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