mirror of
https://github.com/izzy2lost/Ghostship.git
synced 2026-06-19 01:17:03 -07:00
Fixed volume sliders
This commit is contained in:
+3
-3
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user