MayaFlux 0.3.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 171 of file BufferManager.hpp.

172 {
173 ensure_channels(token, num_channels);
174 resize_buffers(token, buffer_size);
175 }
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.

Referenced by BufferManager().

+ Here is the caller graph for this function: