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

◆ on_tick_if()

void MayaFlux::Nodes::ChainNode::on_tick_if ( const NodeHook callback,
const NodeCondition condition 
)
inlineoverridevirtual

Registers a conditional callback for output samples.

Parameters
callbackFunction to call when condition is met
conditionPredicate that determines when callback is triggered

This method delegates to the target node's on_tick_if method, ensuring that conditional callbacks are evaluated based on the final output of the chain. The callback and condition both receive the context from the target node.

Reimplemented from MayaFlux::Nodes::Node.

Definition at line 87 of file NodeStructure.hpp.

88 {
89 m_Target->on_tick_if(callback, condition);
90 }
std::shared_ptr< Node > m_Target
The downstream node that processes the source's output.