Switchboard SDK
|
Allocates memory that can be used to store audio data. More...
#include <BufferAllocator.hpp>
Static Public Member Functions | |
template<typename T > | |
static void | allocateBuffer (T **buffer, const uint numberOfFrames, const uint numberOfChannels) |
Allocates memory for mono or interleaved audio data array with type T. | |
Allocates memory that can be used to store audio data.
BufferAllocator class.
|
static |
Allocates memory for mono or interleaved audio data array with type T.
The allocated buffer is filled with zeros.
buffer | [inout] Pointer to the pointer where the address of the allocated memory will be stored. |
numberOfFrames | The number of frames to allocate. |
numberOfChannels | The number of channels to allocate. |