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

buffer gst.buffer.Buffer

The buffer to reorder.

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.