|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API Vruta::SoundRoutine MayaFlux::Kriya::Gate | ( | Vruta::TaskScheduler & | scheduler, |
| std::function< void()> | callback, | ||
| std::shared_ptr< Nodes::Generator::Logic > | logic_node, | ||
| bool | open = true |
||
| ) |
Coroutine that executes callback continuously while logic node outputs true.
| scheduler | Task scheduler instance |
| callback | Function to execute while condition is true |
| logic_node | Logic node to monitor (creates default threshold node if null) |
| open | Whether to subscribe to gate open (true) or close (false) |
Definition at line 103 of file Tasks.cpp.