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

◆ route_network() [2/2]

void MayaFlux::route_network ( const std::shared_ptr< Nodes::Network::NodeNetwork > &  network,
const std::vector< uint32_t > &  channels,
uint32_t  num_samples,
const Nodes::ProcessingToken token = Nodes::ProcessingToken::AUDIO_RATE 
)

@breif Moves the node from its current channel(s) to the specified channel(s) with an optional fade time

Parameters
networkNodeNetwork to route
channelsVector of channel indices to route the node to
num_samplesNumber of samples to fade the routing over (optional, default is 48000 samples for 1 second at 48kHz)
tokenProcessing domain to route within (default is AUDIO_RATE)

This method adds the specified network to the target channels within the given processing domain. If num_samples is greater than 0, the routing will be smoothly faded in over that many samples.

Definition at line 188 of file Graph.cpp.

193{
194 get_node_graph_manager()->route_network_to_channels(network, channels, num_samples, token);
195}
std::shared_ptr< Nodes::NodeGraphManager > get_node_graph_manager()
Gets the node graph manager from the default engine.
Definition Graph.cpp:35

References get_node_graph_manager().

+ Here is the call graph for this function: