MayaFlux 0.2.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 152 of file NodeGraphManager.cpp.

153{
154 if (token == ProcessingToken::AUDIO_RATE && channel.has_value()) {
155 auto ch = channel.value_or(0U);
157 } else if (auto it = m_token_networks.find(token); it != m_token_networks.end()) {
158 for (auto& network : it->second) {
159 if (network && network->is_enabled()) {
160 network->mark_processed(false);
161 }
162 }
163 }
164
165 if (auto it = m_token_network_processing.find(token); it != m_token_network_processing.end()) {
166 it->second->store(false, std::memory_order_release);
167 }
168}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
std::unordered_map< ProcessingToken, std::vector< std::shared_ptr< Network::NodeNetwork > > > m_token_networks
Non-audio networks (token-level processing) For NONE, GRAPHICS_BIND, CUSTOM output modes.
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::unique_ptr< std::atomic< bool > > > m_token_network_processing
Processing flags for each token's networks.
@ 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: