MayaFlux 0.3.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 101 of file NodeGraphManager.hpp.

102 {
103 auto node = get_node(node_id);
104 if (node) {
105 add_to_root(node, token, channel);
106 }
107 }
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.