AudioBuffer.reorderChannels
bool reorderChannels(gst.buffer.Buffer buffer, gstaudio.types.AudioFormat format, gstaudio.types.AudioChannelPosition[] from, gstaudio.types.AudioChannelPosition[] to)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
buffer | The buffer to reorder. |
format | The [gstaudio.types.AudioFormat] of the buffer. |
from | The channel positions in the buffer. |
to | The channel positions to convert to. |
Returns
true if the reordering was possible.