MayaFlux 0.1.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 168 of file RootNode.cpp.

169{
170 std::vector<double> output(num_samples);
171
172 for (unsigned int i = 0; i < num_samples; i++) {
173 output[i] = process_sample();
174 }
175 return output;
176}
double process_sample()
Processes a single sample from all registered nodes.
Definition RootNode.cpp:111

References process_sample().

+ Here is the call graph for this function: