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

◆ route_network() [1/2]

MAYAFLUX_API void MayaFlux::route_network ( const std::shared_ptr< Nodes::Network::NodeNetwork > &  network,
const std::vector< uint32_t > &  channels,
double  seconds_to_fade = 1.F,
const Nodes::ProcessingToken token = Nodes::ProcessingToken::AUDIO_RATE 
)

@breif Moves the network 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 network to
seconds_to_fadeTime in seconds to fade the routing (optional, default is 1 second)
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 seconds_to_fade is greater than 0, the routing will be smoothly faded in over that time period.

Definition at line 197 of file Graph.cpp.

202{
203 get_node_graph_manager()->route_network_to_channels(network, channels, seconds_to_samples(seconds_to_fade), token);
204}
std::shared_ptr< Nodes::NodeGraphManager > get_node_graph_manager()
Gets the node graph manager from the default engine.
Definition Graph.cpp:35
uint64_t seconds_to_samples(double seconds)
Converts a time duration in seconds to the equivalent number of audio samples.
Definition Chronie.cpp:244

References get_node_graph_manager(), and seconds_to_samples().

+ Here is the call graph for this function: