Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
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.

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.

The documentation for this struct was generated from the following files: