dplug.audio.audiobuffer

Safe, flexible, audio buffer RAII structure.

Members

Functions

audioBufferAlloc
AudioBuffer!T audioBufferAlloc(int channels, int frames, int alignment)

Allocate a new AudioBuffer with given frames and channels. Its data is _not_ initialized.

audioBufferAllocZeroed
AudioBuffer!T audioBufferAllocZeroed(int channels, int frames, int alignment)

Allocate a new AudioBuffer with given frames and channels. Its data is initialized to zeroes.

audioBufferDup
AudioBuffer!T audioBufferDup(const(AudioBuffer!T) buf, int alignment)

Duplicate an AudioBuffer with an own allocation, make it mutable.

audioBufferFromData
AudioBuffer!T audioBufferFromData(int channels, int frames, T** inData)
const(AudioBuffer!T) audioBufferFromData(int channels, int frames, const(T*)* inData)

Create a AudioBuffer by reusing existing data. Hence no format conversion happens.

Structs

AudioBuffer
struct AudioBuffer(T)

An AudioBuffer is a multi-channel buffer, with defined length, to act as storage of audio samples of type T. It is passed around by DSP algorithms. Data is store deinterleaved.

Meta