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

◆ postprocess_networks()

void MayaFlux::Nodes::NodeGraphManager::postprocess_networks ( ProcessingToken  token,
std::optional< uint32_t >  channel 
)
private

Postprocess networks for a specific token and channel.

Parameters
tokenProcessing domain
channelChannel index

Definition at line 144 of file NodeGraphManager.cpp.

145{
146 if (token == ProcessingToken::AUDIO_RATE && channel.has_value()) {
147 auto ch = channel.value_or(0U);
149 } else if (auto it = m_token_networks.find(token); it != m_token_networks.end()) {
150 for (auto& network : it->second) {
151 if (network && network->is_enabled()) {
152 network->mark_processed(false);
153 }
154 }
155 }
156
157 m_token_network_processing[token].store(false, std::memory_order_release);
158}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
void reset_audio_network_state(ProcessingToken token, uint32_t channel=0)
Resets the processing state of audio networks for a token and channel.
std::unordered_map< ProcessingToken, std::atomic< bool > > m_token_network_processing
Processing flags for each token's networks.
std::unordered_map< ProcessingToken, std::vector< std::shared_ptr< NodeNetwork > > > m_token_networks
Non-audio networks (token-level processing) For NONE, GRAPHICS_BIND, CUSTOM output modes.
@ AUDIO_RATE
Nodes that process at the audio sample rate.

References MayaFlux::Nodes::AUDIO_RATE, m_token_network_processing, m_token_networks, reset_audio_network_state(), and token.

Referenced by process_audio_networks(), and process_token().

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