Added cutscene audio #420

Merged
srishamharan merged 3 commits from AudioImpl into main 2023-03-10 19:39:42 +08:00
1 changed files with 7 additions and 8 deletions
Showing only changes of commit 3ef6fef289 - Show all commits

View File

@ -31,7 +31,6 @@ namespace SHADE_Scripting.UI
if (mv != null) if (mv != null)
{ {
mv.ScaledValue = Settings.masterVolume; mv.ScaledValue = Settings.masterVolume;
} }
if (sfx != null) if (sfx != null)
{ {
@ -68,19 +67,19 @@ namespace SHADE_Scripting.UI
if (mv != null) if (mv != null)
{ {
Settings.masterVolume = mv.ScaledValue * 0.01f; Settings.masterVolume = mv.ScaledValue;
SHADE.Audio.SetVCAVolume("vca:/MASTER", Settings.masterVolume); SHADE.Audio.SetVCAVolume("vca:/MASTER", Settings.masterVolume * 0.01f);
} }
if (sfx != null) if (sfx != null)
{ {
Settings.sfxVolume = sfx.ScaledValue * 0.01f; Settings.sfxVolume = sfx.ScaledValue;
SHADE.Audio.SetVCAVolume("vca:/SFX", Settings.sfxVolume); SHADE.Audio.SetVCAVolume("vca:/SFX", Settings.sfxVolume * 0.01f);
SHADE.Audio.SetVCAVolume("vca:/UI", Settings.sfxVolume); SHADE.Audio.SetVCAVolume("vca:/UI", Settings.sfxVolume * 0.01f);
} }
if (bgm != null) if (bgm != null)
{ {
Settings.bgmVolume = bgm.ScaledValue * 0.01f; Settings.bgmVolume = bgm.ScaledValue;
SHADE.Audio.SetVCAVolume("vca:/MUSIC", Settings.bgmVolume); SHADE.Audio.SetVCAVolume("vca:/MUSIC", Settings.bgmVolume * 0.01f);
} }
if (fov != null) if (fov != null)
{ {