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

◆ process_batch()

void MayaFlux::Nodes::Network::AssemblyNetwork::process_batch ( unsigned int  num_samples)
overridevirtual

Process the network for the given number of samples.

Parameters
num_samplesNumber of samples/frames to process

Subclasses implement their specific processing logic:

  1. Update internal state (physics, relationships, etc.)
  2. Process individual nodes
  3. Apply inter-node interactions
  4. Aggregate outputs if needed

Called by NodeGraphManager during token processing.

Implements MayaFlux::Nodes::Network::NodeNetwork.

Definition at line 17 of file AssemblyNetwork.cpp.

18{
19 if (!is_enabled() || !m_operator) {
20 return;
21 }
22
23 for (unsigned int frame = 0; frame < num_samples; ++frame) {
24 m_operator->process(0.0F);
25 }
26
27 if (m_operator_chain && !m_operator_chain->empty()) {
28 for (unsigned int frame = 0; frame < num_samples; ++frame) {
29 m_operator_chain->process(0.0F, m_operator.get());
30 }
31 }
32}
std::unique_ptr< AssemblyOperator > m_operator
bool is_enabled() const
Check if network is enabled.
std::shared_ptr< OperatorChain > m_operator_chain

References MayaFlux::Nodes::Network::NodeNetwork::is_enabled(), m_operator, and MayaFlux::Nodes::Network::NodeNetwork::m_operator_chain.

+ Here is the call graph for this function: