Mus Library Reference
|
MusSetScheduler()
Configure the library to use an external scheduler.
Syntax
void MusSetScheduler(musSched *sched_list);
Arguments
- sched_list is the address of scheduler callback function list
Explanation
Configure 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.
Notes
This function must be called before the library is initialized with 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);
}
|
Nintendo® Confidential
Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.
Copyright © 1998-1999
Nintendo of America Inc. All rights reserved Nintendo and N64 are registered trademarks of Nintendo
Last updated March 1999
|