|
MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Nodes::NodeGraphManager::route_network_to_channels | ( | const std::shared_ptr< Network::NodeNetwork > & | network, |
| const std::vector< uint32_t > & | target_channels, | ||
| uint32_t | fade_cycles, | ||
| ProcessingToken | token | ||
| ) |
Routes a network's output to specific channels within a token domain.
| network | Network to route (must be an audio sink) |
| target_channels | Vector of channel indices to route the network's output to |
| fade_cycles | Number of cycles to fade in the routing (optional) |
| token | Processing domain to route within |
This method registers the network and adds it to the specified channels' root nodes within the given processing domain. If fade_cycles is greater than 0, the routing will be smoothly faded in over that many processing cycles.
Definition at line 723 of file NodeGraphManager.cpp.
References MayaFlux::Nodes::RoutingState::ACTIVE, MayaFlux::Nodes::RoutingState::amount, MayaFlux::Nodes::Network::AUDIO_SINK, ensure_root_exists(), MayaFlux::Nodes::RoutingState::fade_cycles, MayaFlux::Nodes::RoutingState::from_channels, m_audio_networks, m_registered_block_size, MF_WARN, MayaFlux::Journal::NodeProcessing, MayaFlux::Journal::Nodes, register_network_global(), and MayaFlux::Nodes::RoutingState::to_channels.
Here is the call graph for this function: