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

◆ validate_num_audio_channels()

void MayaFlux::Buffers::TokenUnitManager::validate_num_audio_channels ( ProcessingToken  token,
uint32_t  num_channels,
uint32_t  buffer_size 
)
inline

Validates the number of channels and resizes buffers if necessary.

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 232 of file TokenUnitManager.hpp.

233 {
234 ensure_audio_channels(token, num_channels);
235 resize_audio_buffers(token, buffer_size);
236 }
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
void resize_audio_buffers(ProcessingToken token, uint32_t buffer_size)
Resizes all buffers in an audio unit to the specified size.
void ensure_audio_channels(ProcessingToken token, uint32_t channel_count)
Ensures an audio unit exists and resizes it to the specified channel count.

References token.