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
|