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

◆ cleanup_current_operation()

void MayaFlux::Kriya::NodeTimer::cleanup_current_operation ( )
private

Cleans up the current operation, disconnecting the node and resetting state.

This method is called when the timer completes its specified duration. It disconnects the currently active node from the output channels and resets internal state to allow new operations to be started.

Definition at line 171 of file Timers.cpp.

172{
173 if (m_current_node) {
174 for (auto channel : m_channels) {
175 if (m_current_node->is_used_by_channel(channel)) {
177 }
178 }
179 m_current_node = nullptr;
180 m_channels.clear();
181 }
182}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
std::shared_ptr< Nodes::Node > m_current_node
The currently active node being played.
Definition Timers.hpp:366
Nodes::NodeGraphManager & m_node_graph_manager
Reference to the graph manager that manages processing nodes.
Definition Timers.hpp:349
std::vector< uint32_t > m_channels
The output channels the current node is connected to.
Definition Timers.hpp:375
RootNode & get_root_node(ProcessingToken token, unsigned int channel)
Gets or creates the root node for a specific token and channel.
void unregister_node(const std::shared_ptr< Node > &node)
Removes a node from this root node.
Definition RootNode.cpp:52

References MayaFlux::Nodes::NodeGraphManager::get_root_node(), m_channels, m_current_node, m_node_graph_manager, token, and MayaFlux::Nodes::RootNode::unregister_node().

Referenced by cancel(), play_for(), and play_with_processing().

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