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

◆ process_batch()

std::vector< double > MayaFlux::Nodes::RootNode::process_batch ( uint32_t  num_samples)

Processes all registered nodes and combines their outputs.

Parameters
num_samplesNumber of samples to process
Returns
Vector containing the combined output samples

This method calls process_batch() on each registered node and aggregates their outputs together. The result is the combined output of all nodes registered with this root node. If nodes are added or removed during processing, those operations are deferred until after processing completes.

Definition at line 147 of file RootNode.cpp.

148{
149 std::vector<double> output(num_samples);
150
151 for (unsigned int i = 0; i < num_samples; i++) {
152 output[i] = process_sample();
153 }
154 return output;
155}
double process_sample()
Processes a single sample from all registered nodes.
Definition RootNode.cpp:73

References process_sample().

+ Here is the call graph for this function: