All information relating to the audio can be set and embedded into the data using the Sound Tools. However, when you want to make slight changes to audio playback due to the circumstances, you will find it more effective to add the changes yourself at audio playback time rather than dealing with all the data. In this chapter we explain the functions that are available to the programmer to manipulate the playback of audio.
The master volume is present in each song and sound effect. It sets the maximum value for the volume of all audio. A number of parameters exist that determine the size of a sound, but this master volume is applied at the final stage. The function used to adjust the master volume is MusSetMasterVolume. By default, the maximum value is set to 0x7fff.
Set the master volume level
Function name: | MusSetMasterVolume |
Syntax: | void MusSetMasterVolume(u32 flags, s32 volume) |
Arguments: | flags The type of audio (can be combined using "or") MUSFLAG_SONGS All songs MUSFLAG_EFFECTS All sound effects volume The master volume level (0 to 0x7fff) |
Return value: | None |