MayaFlux 0.5.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 183 of file RootNode.cpp.

184{
185 std::vector<double> output(num_samples);
186
187 for (unsigned int i = 0; i < num_samples; i++) {
188 output[i] = process_sample();
189 }
190 return output;
191}
std::shared_ptr< Core::VKImage > output
double process_sample()
Processes a single sample from all registered nodes.
Definition RootNode.cpp:109

References output, and process_sample().

+ Here is the call graph for this function: