N64® Functions Menu

al - Audio Library Functions
gDP - DP GBI Macros
gdSP - General GBI Macros
gSP - SP GBI Macros
gt - Turbo Microcode RDP
gu - Graphics Utilities
Math - Math Functions
Mus - Mus Library
nuSys - NuSystem
os - N64 Operating System
sp - Sprite Library Functions
uh - Host to Target IO
64DD - N64 Disk Drive

Nintendo® Confidential




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