reorder_channels
Description:
public static bool reorder_channels (Buffer buffer, Format format, ChannelPosition[] from, ChannelPosition[] 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 gstaudioformat of the buffer. |
| from |
The channel positions in the buffer. |
| to |
The channel positions to convert to. |
| channels |
The number of channels. |
Returns:
|
true if the reordering was possible. |