audio_reorder_channels


Description:

[ CCode ( cname = "gst_audio_reorder_channels" ) ]
public bool audio_reorder_channels (uint8[] data, Format format, ChannelPosition[] from, ChannelPosition[] 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.

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

Parameters:

data

The pointer to the memory.

format

The Format of the buffer.

from

The channel positions in the buffer.

to

The channel positions to convert to.

channels

The number of channels.

size

The size of the memory.

Returns:

true if the reordering was possible.


Namespace: Gst.Audio



2022 vala-language.org