audioChannelPositionsFromMask
fn
bool audioChannelPositionsFromMask(ulong channelMask, gstaudio.types.AudioChannelPosition[] position)Convert the channels present in channel_mask to a position array (which should have at least channels entries ensured by caller). If channel_mask is set to 0, it is considered as 'not present' for purpose of conversion. A partially valid channel_mask with less bits set than the number of channels is considered valid.
Parameters
channelMask | The input channel_mask |
position | The [gstaudio.types.AudioChannelPosition]<!-- -->s |
Returns
true if channel and channel mask are valid and could be converted