|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Kriya::NodeTimer::play_for | ( | std::shared_ptr< Nodes::Node > | node, |
| double | duration_seconds, | ||
| std::vector< uint32_t > | channels | ||
| ) |
Activates a processing node for a specific duration.
| node | The processing node to activate |
| duration_seconds | How long to keep the node active (in seconds) |
| channels | The output channels to connect the node to |
| channel | The output channel to connect the node to (single-channel overload) |
This method connects the specified node to the output channel, activates it for the specified duration, then automatically disconnects it. The timing is sample-accurate, ensuring that the node remains active for exactly the right duration.
If a node is already active, it is deactivated before starting the new one.
Definition at line 96 of file Timers.cpp.
References MayaFlux::Nodes::NodeGraphManager::add_to_root(), cancel(), cleanup_current_operation(), m_channels, m_current_node, m_node_graph_manager, m_timer, MayaFlux::Kriya::Timer::schedule(), and token.
Referenced by play_for(), and play_for().
Here is the call graph for this function:
Here is the caller graph for this function: