audioCheckValidChannelPositions

fnbool audioCheckValidChannelPositions(gstaudio.types.AudioChannelPosition[] position, bool forceOrder)

Checks if position contains valid channel positions for channels channels. If force_order is true it additionally checks if the channels are in the order required by GStreamer.

Parameters

positionThe GstAudioChannelPositions to check.
forceOrderOnly consider the GStreamer channel order.

Returns

true if the channel positions are valid.