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

◆ update_context()

template<size_t N = 0>
void MayaFlux::Nodes::CompositeOpNode< N >::update_context ( double  value)
inlineoverrideprotectedvirtual

Updates the context object with the current node state.

Parameters
valueThe current sample value

This method is responsible for updating the NodeContext object with the latest state information from the node. It is called internally whenever a new output value is produced, ensuring that the context reflects the current state of the node for use in callbacks.

Implements MayaFlux::Nodes::Node.

Definition at line 522 of file NodeCombine.hpp.

523 {
524 if (m_gpu_compatible) {
527 } else {
530 }
531 }
std::vector< double > input_values
std::vector< double > m_input_values
CompositeOpContextGpu m_context_gpu
double value
Current sample value.
Definition Node.hpp:40
double m_last_output
The most recent sample value generated by this oscillator.
Definition Node.hpp:377
bool m_gpu_compatible
Flag indicating if the node supports GPU processing This flag is set by derived classes to indicate w...
Definition Node.hpp:386