Added new audio banks, fix scaling for options sliders #416

Merged
srishamharan merged 2 commits from AudioImpl into main 2023-03-10 17:55:58 +08:00
3 changed files with 2 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -73,13 +73,13 @@ namespace SHADE_Scripting.UI
} }
if (sfx != null) if (sfx != null)
{ {
Settings.sfxVolume = sfx.ScaledValue; Settings.sfxVolume = sfx.ScaledValue * 0.01f;
SHADE.Audio.SetVCAVolume("vca:/SFX", Settings.sfxVolume); SHADE.Audio.SetVCAVolume("vca:/SFX", Settings.sfxVolume);
SHADE.Audio.SetVCAVolume("vca:/UI", Settings.sfxVolume); SHADE.Audio.SetVCAVolume("vca:/UI", Settings.sfxVolume);
} }
if (bgm != null) if (bgm != null)
{ {
Settings.bgmVolume = bgm.ScaledValue; Settings.bgmVolume = bgm.ScaledValue * 0.01f;
SHADE.Audio.SetVCAVolume("vca:/MUSIC", Settings.bgmVolume); SHADE.Audio.SetVCAVolume("vca:/MUSIC", Settings.bgmVolume);
} }
if (fov != null) if (fov != null)