MusSetScheduler()

Syntax

void MusSetScheduler(musSched *sched_list);

Arguments

sched_list
the address of scheduler callback function list

Description

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.

Return Value

None

Example

/* 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);
}