MayaFlux 1.0.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 228 of file NodeGraphManager.cpp.

229{
230 auto audio_it = m_audio_networks.find(token);
231 if (audio_it != m_audio_networks.end()) {
232 for (auto& network : audio_it->second) {
233 if (network) {
234 if (network->is_registered_on_channel(channel)) {
235 network->request_reset_from_channel(channel);
236 }
237 }
238 }
239 }
240}
Core::GlobalNetworkConfig network
Definition Config.cpp:43
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: