audioReorderChannels

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.

Note: this function assumes the audio data is in interleaved layout

Parameters

data ubyte[]

The pointer to the memory.

format gstaudio.types.AudioFormat

The gstaudio.types.AudioFormat of the buffer.

from gstaudio.types.AudioChannelPosition[]

The channel positions in the buffer.

to gstaudio.types.AudioChannelPosition[]

The channel positions to convert to.

Return Value

Type: bool

true if the reordering was possible.