Fixed volume sliders

This commit is contained in:
KiritoDv
2026-01-09 03:05:53 -06:00
parent d19e4a4e36
commit 59fdcee9bf
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -542,9 +542,9 @@ void audio_init() {
init_sequence_players();
gAudioLoadLock = AUDIO_LOCK_NOT_LOADING;
audio_set_player_volume(SEQ_PLAYER_LEVEL, CVarGetFloat("gSettings.Volume.MainMusic", 1.0f));
audio_set_player_volume(SEQ_PLAYER_ENV, CVarGetFloat("gSettings.Volume.Environment", 1.0f));
audio_set_player_volume(SEQ_PLAYER_SFX, CVarGetFloat("gSettings.Volume.SFX", 1.0f));
audio_set_player_volume(SEQ_PLAYER_LEVEL, CVarGetInteger("gSettings.Volume.MainMusic", 100) / 100.0f);
audio_set_player_volume(SEQ_PLAYER_ENV, CVarGetInteger("gSettings.Volume.Environment", 100) / 100.0f);
audio_set_player_volume(SEQ_PLAYER_SFX, CVarGetInteger("gSettings.Volume.SFX", 100) / 100.0f);
// Should probably contain the sizes of the data banks, but those aren't
// easily accessible from here.
+1 -1
View File
@@ -1497,7 +1497,7 @@ void note_set_vel_pan_reverb(struct Note *note, f32 velocity, f32 pan, u8 reverb
}
float master_vol = CVarGetFloat("gSettings.Volume.Master", 1.0f);
float master_vol = CVarGetInteger("gSettings.Volume.Master", 100) / 100.0f;
volLeft *= master_vol;
volRight *= master_vol;