logs less go

This commit is contained in:
Maikiwi 2022-02-12 19:55:22 -08:00
parent 70c8078dd7
commit 0d6f202b37
2 changed files with 7 additions and 2 deletions

View file

@ -189,20 +189,24 @@ var CiderAudio = {
if (CiderAudio.audioNodes.llpwEnabled == 1) { // If CAP & vibrant bass is enabled if (CiderAudio.audioNodes.llpwEnabled == 1) { // If CAP & vibrant bass is enabled
CiderAudio.vibrantbass_h2_1(true) CiderAudio.vibrantbass_h2_1(true)
CiderAudio.llpw_h2_2(true, 2) CiderAudio.llpw_h2_2(true, 2)
console.log("[Cider][Audio] CAP & vibrant bass is enabled")
} }
else { // If only vibrant bass is enabled else { // If only vibrant bass is enabled
CiderAudio.vibrantbass_h2_1(true) CiderAudio.vibrantbass_h2_1(true)
CiderAudio.llpw_h2_2(false, 0) CiderAudio.llpw_h2_2(false, 0)
console.log("[Cider][Audio] Only vibrant bass is enabled")
} }
} }
else { // If vibrant bass is disabled else { // If vibrant bass is disabled
if (CiderAudio.audioNodes.llpwEnabled == 1) { // If CAP is enabled & vibrant bass is disabled if (CiderAudio.audioNodes.llpwEnabled == 1) { // If CAP is enabled & vibrant bass is disabled
CiderAudio.vibrantbass_h2_1(false) CiderAudio.vibrantbass_h2_1(false)
CiderAudio.llpw_h2_2(true, 1) CiderAudio.llpw_h2_2(true, 1)
console.log("[Cider][Audio] CAP is enabled & vibrant bass is disabled")
} }
else { // If CAP & vibrant bass is disabled else { // If CAP & vibrant bass is disabled
CiderAudio.vibrantbass_h2_1(false) CiderAudio.vibrantbass_h2_1(false)
CiderAudio.llpw_h2_2(false, 0) CiderAudio.llpw_h2_2(false, 0)
console.log("[Cider][Audio] CAP & vibrant bass is disabled")
} }
} }

View file

@ -314,10 +314,11 @@
}, },
changeVibrantBass() { changeVibrantBass() {
app.cfg.audio.vibrantBass.multiplier = app.cfg.audio.equalizer.vibrantBass / 10 app.cfg.audio.vibrantBass.multiplier = app.cfg.audio.equalizer.vibrantBass / 10
CiderAudio.hierarchical_loading();
if (app.cfg.audio.equalizer.vibrantBass != 0) {
for (var i = 0; i < 21; i++) { for (var i = 0; i < 21; i++) {
CiderAudio.audioNodes.vibrantbassNode[i].gain.value = app.cfg.audio.vibrantBass.gain[i] * (app.cfg.audio.equalizer.vibrantBass / 10); CiderAudio.audioNodes.vibrantbassNode[i].gain.value = app.cfg.audio.vibrantBass.gain[i] * (app.cfg.audio.equalizer.vibrantBass / 10);
} }}
CiderAudio.hierarchical_loading();
}, },
changeMix() { changeMix() {
for (var i = 0; i < 10; i++) { for (var i = 0; i < 10; i++) {