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
|
MusSetMasterVolume()Set the master volume levels. Syntax void MusSetMasterVolume(unsigned long flags, int volume); Arguments
Explanation
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
Example void SetOptionsSfx(int value) { MusSetMasterVolume(MUSFLAGS_EFFECTS, (value*0x1000)+0xfff); } void SetOptionsMusic(int value) { MusSetMasterVolume(MUSFLAGS_SONGS, (value*0x1000)+0xfff); }
|