GstAudioBuffer

A structure containing the result of an audio buffer map operation, which is executed with gstaudio.audio_buffer.AudioBuffer.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.

Members

Variables

GstReserved
void*[4] GstReserved;
buffer
GstBuffer* buffer;

the mapped buffer

info
GstAudioInfo info;

a #GstAudioInfo describing the audio properties of this buffer

mapInfos
GstMapInfo* mapInfos;
nPlanes
int nPlanes;

the number of planes available

nSamples
size_t nSamples;

the size of the buffer in samples

planes
void** planes;

an array of @n_planes pointers pointing to the start of each plane in the mapped buffer

privMapInfosArr
GstMapInfo[8] privMapInfosArr;
privPlanesArr
void*[8] privPlanesArr;