[ CCode ( has_type_id = false ) ] [ GIR ( name = "AudioBuffer" ) ] [ Version ( since = "1.16" ) ] publicstructBuffer
A structure containing the result of an audio buffer map operation, which is executed with
map.
For non-interleaved (planar) buffers, the beginning of each channel in the buffer has its own pointer in the planes array.
For interleaved buffers, the planes array only contains one item, which is the pointer to the beginning of the buffer, and
n_planes equals 1.
The different channels in planes are always in the GStreamer channel order.
Reorders buffer from the channel positions from
to the channel positions to.
publicstaticBuffertruncate (ownedBuffer buffer, int bpf, size_t trim, size_t samples)
Truncate the buffer to finally have samples number of
samples, removing the necessary amount of samples from the end and trim number of samples from the beginning.