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

◆ process_sample()

double MayaFlux::Nodes::Constant::process_sample ( double  input = 0.0)
overridevirtual

Return the constant value, ignoring input.

Parameters
inputIgnored; present only to satisfy the Node interface
Returns
The stored constant

Updates m_last_output, fires notify_tick(), and returns the value. The input parameter is accepted but never read: Constant is a pure source.

Implements MayaFlux::Nodes::Node.

Definition at line 15 of file Constant.cpp.

16{
18
21 }
22
23 return m_value;
24}
void notify_tick(double value) override
Fire all registered on_tick() and on_tick_if() callbacks.
Definition Constant.cpp:76
bool m_state_saved
tracks if the node's state has been saved by a snapshot operation
Definition Node.hpp:429
bool m_networked_node
Flag indicating if the node is part of a NodeNetwork This flag is used to disable event firing when t...
Definition Node.hpp:424
double m_last_output
The most recent sample value generated by this oscillator.
Definition Node.hpp:377
bool m_fire_events_during_snapshot
Internal flag controlling whether notify_tick fires during state snapshots Default: false (events don...
Definition Node.hpp:453

References MayaFlux::Nodes::Node::m_fire_events_during_snapshot, MayaFlux::Nodes::Node::m_last_output, MayaFlux::Nodes::Node::m_networked_node, MayaFlux::Nodes::Node::m_state_saved, m_value, and notify_tick().

Referenced by process_batch().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: