[ CCode ( cname = "gst_buffer_add_audio_downmix_meta" ) ]
public unowned DownmixMeta? buffer_add_audio_downmix_meta (Buffer buffer, ChannelPosition[] from_position, ChannelPosition[] to_position, float*[] matrix)
Attaches DownmixMeta metadata to buffer
with the given parameters.
matrix
is an two-dimensional array of to_position.length
times from_position.length
coefficients,
i.e. the i-th output channels is constructed by multiplicating the input channels with the coefficients in matrix
[i] and
taking the sum of the results.
buffer |
a Buffer |
from_position |
the channel positions of the source |
to_position |
the channel positions of the destination |
matrix |
The matrix coefficients. |
from_channels |
The number of channels of the source |
to_channels |
The number of channels of the destination |
the DownmixMeta on |