Switchboard SDK
Loading...
Searching...
No Matches
switchboard::BufferAllocator Struct Reference

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.
 

Detailed Description

Allocates memory that can be used to store audio data.

BufferAllocator class.

Member Function Documentation

◆ allocateBuffer()

template<typename T >
template void switchboard::BufferAllocator::allocateBuffer< int > ( T ** buffer,
const uint numberOfFrames,
const uint numberOfChannels )
static

Allocates memory for mono or interleaved audio data array with type T.

The allocated buffer is filled with zeros.

Parameters
buffer[inout] Pointer to the pointer where the address of the allocated memory will be stored.
numberOfFramesThe number of frames to allocate.
numberOfChannelsThe number of channels to allocate.