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

◆ on_tick()

void MayaFlux::Nodes::ChainNode::on_tick ( const NodeHook callback)
inlineoverridevirtual

Registers a callback for every output sample.

Parameters
callbackFunction to call when a new sample is output

This method delegates to the target node's on_tick method, ensuring that callbacks are triggered based on the final output of the chain rather than intermediate values. The callback receives the context from the target node.

Reimplemented from MayaFlux::Nodes::Node.

Definition at line 72 of file NodeStructure.hpp.

73 {
74 m_Target->on_tick(callback);
75 }
std::shared_ptr< Node > m_Target
The downstream node that processes the source's output.