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

◆ schedule_task()

MAYAFLUX_API void MayaFlux::schedule_task ( const std::string &  name,
Vruta::SoundRoutine &&  task,
bool  initialize = false 
)

Schedules a new sound routine task.

Parameters
nameUnique name for the task
taskThe sound routine to schedule
initializeWhether to initialize the task immediately

Convenience wrapper for Engine::schedule_task() on the default engine.

Definition at line 96 of file Chronie.cpp.

97{
98 auto task_ptr = std::make_shared<Vruta::SoundRoutine>(task);
99 get_scheduler()->add_task(std::move(task_ptr), name, initialize);
100}
void initialize()
Definition main.cpp:11
std::shared_ptr< Vruta::TaskScheduler > get_scheduler()
Gets the task scheduler from the default engine.
Definition Chronie.cpp:14

References get_scheduler(), and initialize().

+ Here is the call graph for this function: