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

◆ NodeGraphManager() [1/3]

MayaFlux::Nodes::NodeGraphManager::NodeGraphManager ( uint32_t  sample_rate = 48000,
uint32_t  block_size = 512,
uint32_t  frame_rate = 60 
)

Creates a new NodeGraphManager.

Parameters
sample_rateSample rate for audio processing (default: 48000 Hz)
block_sizeBlock size for audio processing (default: 512 samples)
frame_rateFrame rate for visual processing (default: 60 FPS)

Initializes the manager with a root node for channel 0 (the default channel) in the AUDIO_RATE domain. Additional root nodes for other tokens and channels are created on demand when accessed.

Definition at line 11 of file NodeGraphManager.cpp.

12 : m_registered_sample_rate(sample_rate)
13 , m_registered_block_size(block_size)
14 , m_registered_frame_rate(frame_rate)
15{
17}
uint32_t m_registered_block_size
Block size for audio processing, used for normalizationbuffer.
uint32_t m_registered_sample_rate
Sample rate for audio processing, used for normalization.
void ensure_root_exists(ProcessingToken token, unsigned int channel)
Ensures a root node exists for the given token and channel.
uint32_t m_registered_frame_rate
Frame rate for visual processing, used for timing and normalization.
@ AUDIO_RATE
Nodes that process at the audio sample rate.

References MayaFlux::Nodes::AUDIO_RATE, and ensure_root_exists().

+ Here is the call graph for this function: