MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ schedule_pattern() [3/4]

MAYAFLUX_API void MayaFlux::schedule_pattern ( std::function< std::any(uint64_t)>  pattern_func,
std::function< void(std::any)>  callback,
double  interval_seconds,
std::string  name = "",
Vruta::ProcessingToken  token = Vruta::ProcessingToken::SAMPLE_ACCURATE 
)

Schedules a pattern generator with one interval between steps.

Parameters
pattern_funcFunction that generates pattern values based on step index
callbackFunction to call with each pattern value
interval_secondsTime between pattern steps
nameName of the pattern task (optional but recommended). If not provided, a default name will be generated.
tokenProcessing token to determine which scheduler rate to use (default: SAMPLE_ACCURATE)
Deprecated:
Pass a list of durations instead, with the interval as a list of one.

Forwards to the durations overload. Uses the task scheduler from the default engine.

Definition at line 84 of file Chronie.cpp.

85{
86 schedule_pattern(std::move(pattern_func), std::move(callback), std::vector<double> { interval_seconds }, std::move(name), token);
87}
PickCallback callback
Definition Picker.cpp:22
std::string name
Definition VKDevice.cpp:123
void schedule_pattern(std::function< std::any(uint64_t)> pattern_func, std::function< void(std::any)> callback, std::vector< double > durations, std::string name, Vruta::ProcessingToken token)
Schedules a pattern generator whose steps are spaced by a list of durations.
Definition Chronie.cpp:74

References callback, name, and schedule_pattern().

+ Here is the call graph for this function: