Function

GstAudio-1.0GstAudioaudio_reorder_channels

  • 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.

    This function internally calls gst_audio_get_channel_reorder_map() and gst_audio_reorder_channels_with_reorder_map(). It is more efficient to call gst_audio_get_channel_reorder_map() once to retrieve the reorder map and then call gst_audio_reorder_channels_with_reorder_map() with the same reorder map until the channel positions change.

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

    Parameters

    Returns boolean

    true if the reordering was possible.