Parameters
data | The pointer to the memory. |
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.
bool audioReorderChannels(ubyte[] data, gstaudio.types.AudioFormat format, gstaudio.types.AudioChannelPosition[] from, gstaudio.types.AudioChannelPosition[] to)Reorders data 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.
data | The pointer to the memory. |
format | The [gstaudio.types.AudioFormat] of the buffer. |
from | The channel positions in the buffer. |
to | The channel positions to convert to. |