mirror of
https://github.com/libsm64/libsm64.git
synced 2025-01-22 07:32:04 -05:00
add function to set sound volume
This commit is contained in:
parent
80b710f482
commit
6dfc5d1943
2 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue