MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ validate_num_channels()

void MayaFlux::Buffers::BufferManager::validate_num_channels ( ProcessingToken  token,
uint32_t  num_channels,
uint32_t  buffer_size 
)
inline

Validates the number of channels and resizes buffers if necessary (audio-specific)

Parameters
tokenProcessing domain
num_channelsNumber of channels to validate
buffer_sizeNew buffer size to set

This method ensures that the specified number of channels exists for the given token, resizing the root audio buffers accordingly.

Definition at line 169 of file BufferManager.hpp.

170 {
171 ensure_channels(token, num_channels);
172 resize_buffers(token, buffer_size);
173 }
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
void ensure_channels(ProcessingToken token, uint32_t channel_count)
Ensures minimum number of channels exist for an audio token.
void resize_buffers(ProcessingToken token, uint32_t buffer_size)
Resizes buffers for a token.

References token.

Referenced by BufferManager().

+ Here is the caller graph for this function: