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

◆ add_to_root() [2/2]

void MayaFlux::Nodes::NodeGraphManager::add_to_root ( const std::string &  node_id,
ProcessingToken  token = ProcessingToken::AUDIO_RATE,
unsigned int  channel = 0 
)
inline

Adds a node to a channel's root node by its identifier.

Parameters
node_idIdentifier of the node to add @ param token Processing domain to add the node to (default is AUDIO_RATE)
channelChannel index to add the node to (AUDIO_RATE domain)

Looks up the node by its identifier and adds it to the specified channel's root node in the specified processing domain (default is AUDIO_RATE). Throws an exception if the node identifier is not found.

Definition at line 83 of file NodeGraphManager.hpp.

84 {
85 auto node = get_node(node_id);
86 if (node) {
87 add_to_root(node, token, channel);
88 }
89 }
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
void add_to_root(const std::shared_ptr< Node > &node, ProcessingToken token, unsigned int channel=0)
Add node to specific processing token and channel.
std::shared_ptr< Node > get_node(const std::string &id)
Looks up a node by its string identifier.

References token.