|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API void MayaFlux::schedule_metro | ( | double | interval_seconds, |
| std::function< void()> | callback, | ||
| std::string | name = "", |
||
| Vruta::ProcessingToken | token = Vruta::ProcessingToken::SAMPLE_ACCURATE |
||
| ) |
Creates a metronome task and addes it to the default scheduler list for evaluation.
| interval_seconds | Time between calls in seconds |
| callback | Function to call on each tick |
| name | Name of the metronome task (optional but recommended). If not provided, a default name will be generated. |
| token | Processing token to determine which scheduler rate to use (default: SAMPLE_ACCURATE) |
Uses the task scheduler from the default engine.
Definition at line 38 of file Chronie.cpp.
References get_scheduler(), and MayaFlux::Kriya::metro().
Here is the call graph for this function: