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

◆ route_node() [2/2]

void MayaFlux::route_node ( const std::shared_ptr< Nodes::Node > &  node,
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
nodeNode 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 node to the root nodes of 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 101 of file Graph.cpp.

106{
107 get_node_graph_manager()->route_node_to_channels(node, channels, num_samples, token);
108}
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: