parent
1b1fb8c133
commit
4a7c5fd63c
1 changed files with 8 additions and 15 deletions
|
@ -132,10 +132,7 @@ var CiderAudio = {
|
||||||
CiderAudio.audioNodes.llpw[i].gain.value = LLPW_GAIN[i] * app.cfg.audio.ciderPPE_value * CiderAudio.audioNodes.llpwEnabled;
|
CiderAudio.audioNodes.llpw[i].gain.value = LLPW_GAIN[i] * app.cfg.audio.ciderPPE_value * CiderAudio.audioNodes.llpwEnabled;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
for (var i of CiderAudio.audioNodes.llpw){
|
CiderAudio.audioNodes.llpw[LLPW_FREQUENCIES.length-1].disconnect();} catch(e){}
|
||||||
i.disconnect();
|
|
||||||
}
|
|
||||||
} catch(e){}
|
|
||||||
|
|
||||||
for (i = 1; i < LLPW_FREQUENCIES.length; i ++) {
|
for (i = 1; i < LLPW_FREQUENCIES.length; i ++) {
|
||||||
CiderAudio.audioNodes.llpw[i-1].connect(CiderAudio.audioNodes.llpw[i]);
|
CiderAudio.audioNodes.llpw[i-1].connect(CiderAudio.audioNodes.llpw[i]);
|
||||||
|
@ -173,10 +170,7 @@ var CiderAudio = {
|
||||||
}
|
}
|
||||||
|
|
||||||
try{
|
try{
|
||||||
for (var i of CiderAudio.audioNodes.vibrantbassNode){
|
CiderAudio.audioNodes.vibrantbassNode[VIBRANTBASSBANDS.length-1].disconnect();} catch(e){}
|
||||||
i.disconnect();
|
|
||||||
}
|
|
||||||
} catch(e){}
|
|
||||||
|
|
||||||
for (i = 1; i < VIBRANTBASSBANDS.length; i ++) {
|
for (i = 1; i < VIBRANTBASSBANDS.length; i ++) {
|
||||||
CiderAudio.audioNodes.vibrantbassNode[i-1].connect(CiderAudio.audioNodes.vibrantbassNode[i]);
|
CiderAudio.audioNodes.vibrantbassNode[i-1].connect(CiderAudio.audioNodes.vibrantbassNode[i]);
|
||||||
|
@ -187,11 +181,10 @@ var CiderAudio = {
|
||||||
|
|
||||||
else {
|
else {
|
||||||
try {
|
try {
|
||||||
for (var i of CiderAudio.audioNodes.vibrantbassNode){
|
for (var i of CiderAudio.audioNodes.vibrantbassNode){
|
||||||
i.disconnect();
|
i.disconnect();
|
||||||
}
|
}
|
||||||
CiderAudio.audioNodes.vibrantbassNode = [];
|
CiderAudio.audioNodes.vibrantbassNode = [];} catch(e){}
|
||||||
} catch(e){}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
hierarchical_loading: function (){
|
hierarchical_loading: function (){
|
||||||
|
@ -222,7 +215,7 @@ var CiderAudio = {
|
||||||
|
|
||||||
if (app.cfg.audio.spatial) {
|
if (app.cfg.audio.spatial) {
|
||||||
try{
|
try{
|
||||||
CiderAudio.audioNodes.spatialNode.output.disconnect();} catch(e){}
|
CiderAudio.audioNodes.spatialNode.output.disconnect(CiderAudio.context.destination);} catch(e){}
|
||||||
if (app.cfg.audio.vibrantBass.multiplier != 0) { // If vibrant bass is enabled
|
if (app.cfg.audio.vibrantBass.multiplier != 0) { // If vibrant bass is enabled
|
||||||
if (CiderAudio.audioNodes.llpwEnabled == 1) { // If CAP & vibrant bass is enabled
|
if (CiderAudio.audioNodes.llpwEnabled == 1) { // If CAP & vibrant bass is enabled
|
||||||
CiderAudio.audioNodes.spatialNode.output.connect(CiderAudio.audioNodes.llpw[0]);
|
CiderAudio.audioNodes.spatialNode.output.connect(CiderAudio.audioNodes.llpw[0]);
|
||||||
|
@ -247,7 +240,7 @@ var CiderAudio = {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
try{
|
try{
|
||||||
CiderAudio.audioNodes.gainNode.disconnect();} catch(e){}
|
CiderAudio.audioNodes.gainNode.disconnect(CiderAudio.context.destination);} catch(e){}
|
||||||
if (app.cfg.audio.vibrantBass.multiplier != 0) { // If vibrant bass is enabled
|
if (app.cfg.audio.vibrantBass.multiplier != 0) { // If vibrant bass is enabled
|
||||||
if (CiderAudio.audioNodes.llpwEnabled == 1) { // If CAP & vibrant bass is enabled
|
if (CiderAudio.audioNodes.llpwEnabled == 1) { // If CAP & vibrant bass is enabled
|
||||||
CiderAudio.audioNodes.gainNode.connect(CiderAudio.audioNodes.llpw[0]);
|
CiderAudio.audioNodes.gainNode.connect(CiderAudio.audioNodes.llpw[0]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue