void MusSetScheduler(musSched *sched_list);
It configures the music library to use an external scheduler. The library relies on three functions related to the graphic/audio task scheduler.
The sched_list argument takes the address of the callback function list structure.
Note: This function must be called before the library is initialized the MusInitialize() function.
None
/* prototypes for NN scheduler support functions */ static void NnSchedInstall(void); static void NnSchedWaitFrame(void); static void NnSchedDoTask(musTask *task); /* music library scheduler callback structure */ static musSched nn_mus_sched = { NnSchedInstall, NnSchedWaitFrame, NnSchedDoTask }; void InitMusicDriver(musConfig *init) { MusSetScheduler(&nn_mus_sched); MusInitialize(&init); }