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

◆ unregister_audio_node() [2/2]

MAYAFLUX_API void MayaFlux::unregister_audio_node ( const std::shared_ptr< Nodes::Node > &  node,
uint32_t  channel = 0 
)

Removes a node from the root node of a specific channel.

Parameters
nodeNode to remove
channelChannel index

Removes the node from being a child of the root node for the specified channel. Uses the default engine's node graph manager.

Definition at line 40 of file Graph.cpp.

41{
42 auto manager = get_node_graph_manager();
43 if (channel >= manager->get_channel_count(Nodes::ProcessingToken::AUDIO_RATE)) {
44 MF_ERROR(Journal::Component::API, Journal::Context::NodeProcessing,
45 "Channel index out of range for audio node registration");
46 }
47 manager->remove_from_root(node, Nodes::ProcessingToken::AUDIO_RATE, channel);
48}
#define MF_ERROR(comp, ctx,...)
std::shared_ptr< Nodes::NodeGraphManager > get_node_graph_manager()
Gets the node graph manager from the default engine.
Definition Graph.cpp:18

References MayaFlux::Journal::API, MayaFlux::Nodes::AUDIO_RATE, get_node_graph_manager(), MF_ERROR, and MayaFlux::Journal::NodeProcessing.

Referenced by MayaFlux::Nodes::ChainNode::initialize(), MayaFlux::Nodes::BinaryOpNode::initialize(), and unregister_audio_node().

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