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

◆ reset_audio_network_state()

void MayaFlux::Nodes::NodeGraphManager::reset_audio_network_state ( ProcessingToken  token,
uint32_t  channel = 0 
)
private

Resets the processing state of audio networks for a token and channel.

Parameters
tokenProcessing domain
channelChannel index

Definition at line 160 of file NodeGraphManager.cpp.

161{
162 auto audio_it = m_audio_networks.find(token);
163 if (audio_it != m_audio_networks.end()) {
164 auto channel_it = audio_it->second.find(channel);
165 if (channel_it != audio_it->second.end()) {
166 for (auto& network : channel_it->second) {
167 if (network) {
168 network->mark_processed(false);
169 }
170 }
171 }
172 }
173}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
std::unordered_map< ProcessingToken, std::unordered_map< unsigned int, std::vector< std::shared_ptr< NodeNetwork > > > > m_audio_networks
Audio-sink networks (channel-routed) Only populated for networks with OutputMode::AUDIO_SINK.

References m_audio_networks, and token.

Referenced by postprocess_networks(), and process_channel().

+ Here is the caller graph for this function: