add function to set sound volume

This commit is contained in:
headshot2017 2023-02-04 21:39:10 -04:00
parent 80b710f482
commit 6dfc5d1943
2 changed files with 6 additions and 0 deletions

View file

@ -666,3 +666,8 @@ SM64_LIB_FN void sm64_play_sound_global(int32_t soundBits)
{
play_sound(soundBits,gGlobalSoundSource);
}
SM64_LIB_FN void sm64_set_sound_volume(float vol)
{
gAudioVolume = vol;
}

View file

@ -184,5 +184,6 @@ extern SM64_LIB_FN void sm64_fadeout_background_music(uint16_t arg0, uint16_t fa
extern SM64_LIB_FN uint16_t sm64_get_current_background_music();
extern SM64_LIB_FN void sm64_play_sound(int32_t soundBits, float *pos);
extern SM64_LIB_FN void sm64_play_sound_global(int32_t soundBits);
extern SM64_LIB_FN void sm64_set_sound_volume(float vol);
#endif//LIB_SM64_H