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

◆ add_to_root() [1/2]

void MayaFlux::Nodes::NodeGraphManager::add_to_root ( const std::shared_ptr< Node > &  node,
ProcessingToken  token,
unsigned int  channel = 0 
)

Add node to specific processing token and channel.

Parameters
nodeNode to add
tokenProcessing domain (AUDIO_RATE, VISUAL_RATE, etc.)
channelChannel within that domain

Registers the node with the specified processing domain and channel. The node's output will contribute to that token/channel's output. If the node is not already globally registered, it will be registered automatically.

Definition at line 15 of file NodeGraphManager.cpp.

18{
19 set_channel_mask(node, channel);
20
21 auto& root = get_root_node(token, channel);
22 root.register_node(node);
23}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
void set_channel_mask(const std::shared_ptr< Node > &node, uint32_t channel_id)
Adds the specified channel mask to a node's global registration.
RootNode & get_root_node(ProcessingToken token, unsigned int channel)
Gets or creates the root node for a specific token and channel.

References get_root_node(), set_channel_mask(), and token.

Referenced by MayaFlux::Kriya::NodeTimer::play_for(), and MayaFlux::Kriya::NodeTimer::play_with_processing().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: