block pentium
This commit is contained in:
parent
f84c25808f
commit
4c0b8e3c24
1 changed files with 22 additions and 7 deletions
|
@ -929,13 +929,28 @@
|
||||||
},
|
},
|
||||||
toggleAudioContext: function () {
|
toggleAudioContext: function () {
|
||||||
if (app.cfg.advanced.AudioContext === true) {
|
if (app.cfg.advanced.AudioContext === true) {
|
||||||
CiderAudio.init();
|
if (navigator.hardwareConcurrency < 6) {
|
||||||
if (app.cfg.audio.normalization === true) {
|
bootbox.confirm("Cider detects less than 6 logical processors, turning this on will most certainly lag. Are you sure you want to continue?", function (result) {
|
||||||
CiderAudio.normalizerOn()
|
if (result) {
|
||||||
|
CiderAudio.init();
|
||||||
|
if (app.cfg.audio.normalization === true) {
|
||||||
|
CiderAudio.normalizerOn()
|
||||||
|
}
|
||||||
|
if (app.cfg.audio.spatial === true) {
|
||||||
|
CiderAudio.spatialOn()
|
||||||
|
CiderAudio.hierarchical_loading();
|
||||||
|
}
|
||||||
|
}})
|
||||||
}
|
}
|
||||||
if (app.cfg.audio.spatial === true) {
|
else {
|
||||||
CiderAudio.spatialOn()
|
CiderAudio.init();
|
||||||
CiderAudio.hierarchical_loading();
|
if (app.cfg.audio.normalization === true) {
|
||||||
|
CiderAudio.normalizerOn()
|
||||||
|
}
|
||||||
|
if (app.cfg.audio.spatial === true) {
|
||||||
|
CiderAudio.spatialOn()
|
||||||
|
CiderAudio.hierarchical_loading();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
CiderAudio.off();
|
CiderAudio.off();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue