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


MusSetMasterVolume()

Set the master volume levels.

Syntax

  void MusSetMasterVolume(unsigned long flags, int volume);

Arguments

  • flags - sound source type

  • volume is the master volume level

Explanation
Set the master volume level for all sound generated by the specified type. This function allows the programmer to define the master volume levels for songs and sound effects.

The flags argument must contain MUSFLAG_SONGS, MUSFLAG_EFFECTS, or both OR'ed together.

The volume value should be within the range 0 to 0x7FFF (32767).

Return Value
None

Example

  void SetOptionsSfx(int value)
  {
    MusSetMasterVolume(MUSFLAGS_EFFECTS, (value*0x1000)+0xfff);
  }

  void SetOptionsMusic(int value)
  {
    MusSetMasterVolume(MUSFLAGS_SONGS, (value*0x1000)+0xfff);
  }



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