AudioBuffer.reorderChannels

Reorders buffer from the channel positions from to the channel positions to. from and to must contain the same number of positions and the same positions, only in a different order. buffer must be writable.

Parameters

bufferThe buffer to reorder.
formatThe [gstaudio.types.AudioFormat] of the buffer.
fromThe channel positions in the buffer.
toThe channel positions to convert to.

Returns

true if the reordering was possible.