MayaFlux 0.4.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 225 of file NodeGraphManager.cpp.

226{
227 auto audio_it = m_audio_networks.find(token);
228 if (audio_it != m_audio_networks.end()) {
229 for (auto& network : audio_it->second) {
230 if (network) {
231 if (network->is_registered_on_channel(channel)) {
232 network->request_reset_from_channel(channel);
233 }
234 }
235 }
236 }
237}
Core::GlobalNetworkConfig network
Definition Config.cpp:37
std::unordered_map< ProcessingToken, std::vector< std::shared_ptr< Network::NodeNetwork > > > m_audio_networks
Audio-sink networks Only populated for networks with OutputMode::AUDIO_SINK.

References m_audio_networks, and network.

Referenced by postprocess_networks(), and process_channel().

+ Here is the caller graph for this function: