Update volume in sound-group sog3 to sfx-volume (#3574)
Some checks failed
Build / 🍎 MacOS (push) Has been cancelled
Build / 🖥️ Windows (push) Has been cancelled
Build / 🐧 Linux (push) Has been cancelled
Inform Pages Repo / Generate Documentation (push) Has been cancelled
Lint / 📝 Formatting (push) Has been cancelled
Lint / 📝 Required Checks (push) Has been cancelled
Lint / 📝 Optional Checks (push) Has been cancelled

Adds a way to override certain sounds that don't respect the settings
that they should...



https://github.com/open-goal/jak-project/assets/89345505/97d9518d-aafd-4227-b25f-82c5d32e811e
This commit is contained in:
ZedB0T 2024-07-08 19:24:03 -04:00 committed by GitHub
parent b4113dda67
commit 291c89a851
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -157,7 +157,9 @@
(when *sound-player-enable*
(when (!= (-> gp-0 sfx-volume) (-> s5-1 sfx-volume))
(seek! (-> gp-0 sfx-volume) (-> s5-1 sfx-volume) (* 100.0 (seconds-per-frame)))
(sound-set-volume (sound-group sfx) (-> gp-0 sfx-volume)))
(sound-set-volume (sound-group sfx) (-> gp-0 sfx-volume))
;; og:preserve-this Fix for menu-close
(sound-set-volume (sound-group sog3) (-> gp-0 sfx-volume)))
(when (!= (-> gp-0 music-volume) (-> s5-1 music-volume))
(seek! (-> gp-0 music-volume) (-> s5-1 music-volume) (* 100.0 (seconds-per-frame)))
(sound-set-volume (sound-group music) (-> gp-0 music-volume)))