|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API Vruta::SoundRoutine MayaFlux::Kriya::Toggle | ( | Vruta::TaskScheduler & | scheduler, |
| std::function< void()> | callback, | ||
| std::shared_ptr< Nodes::Generator::Logic > | logic_node | ||
| ) |
Coroutine that executes callback on any logic node state change.
| scheduler | Task scheduler instance |
| logic_node | Logic node to monitor (creates default threshold node if null) |
| callback | Function to execute on any state flip |
Definition at line 164 of file Tasks.cpp.