|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API Vruta::SoundRoutine MayaFlux::Kriya::Trigger | ( | Vruta::TaskScheduler & | scheduler, |
| bool | target_state, | ||
| std::function< void()> | callback, | ||
| std::shared_ptr< Nodes::Generator::Logic > | logic_node | ||
| ) |
Coroutine that executes callback when logic node changes to specific state.
| scheduler | Task scheduler instance |
| logic_node | Logic node to monitor (creates default threshold node if null) |
| target_state | State to trigger on (true/false) |
| callback | Function to execute on state change |
Definition at line 136 of file Tasks.cpp.