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

◆ atomic_dec_modulator_count()

MAYAFLUX_API void MayaFlux::Nodes::atomic_dec_modulator_count ( std::atomic< uint32_t > &  count,
int  amount 
)

Atomically decrements the modulator count by a specified amount.

Parameters
countThe atomic counter to decrement
amountThe amount to decrement by

Decreases a node's modulator count when it's no longer being used as a modulation source by another node. When the count reaches zero, the node becomes eligible for state resets, allowing the audio engine to optimize processing and avoid redundant calculations in the signal chain.

Definition at line 303 of file NodeUtils.cpp.

304{
305 count.fetch_sub(amount, std::memory_order_relaxed);
306}
size_t count

References count.

Referenced by MayaFlux::Nodes::ChainNode::process_sample(), MayaFlux::Nodes::BinaryOpNode::process_sample(), MayaFlux::Nodes::CompositeOpNode< N >::process_sample(), MayaFlux::Nodes::Filters::FIR::process_sample(), MayaFlux::Nodes::Filters::IIR::process_sample(), MayaFlux::Nodes::Generator::Impulse::process_sample(), MayaFlux::Nodes::Generator::Logic::process_sample(), MayaFlux::Nodes::Generator::Phasor::process_sample(), MayaFlux::Nodes::Generator::Polynomial::process_sample(), MayaFlux::Nodes::Generator::Sine::process_sample(), MayaFlux::Nodes::Generator::Counter::process_sample(), MayaFlux::Buffers::FilterProcessor::process_single_sample(), and MayaFlux::Nodes::Generator::Logic::release_input_nodes().

+ Here is the caller graph for this function: