diff --git a/src/renderer/views/pages/settings.ejs b/src/renderer/views/pages/settings.ejs index fa4fb507..114e1102 100644 --- a/src/renderer/views/pages/settings.ejs +++ b/src/renderer/views/pages/settings.ejs @@ -929,14 +929,29 @@ }, toggleAudioContext: function () { if (app.cfg.advanced.AudioContext === true) { - CiderAudio.init(); - if (app.cfg.audio.normalization === true) { - CiderAudio.normalizerOn() - } - if (app.cfg.audio.spatial === true) { - CiderAudio.spatialOn() - CiderAudio.hierarchical_loading(); + if (navigator.hardwareConcurrency < 6) { + 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) { + if (result) { + CiderAudio.init(); + if (app.cfg.audio.normalization === true) { + CiderAudio.normalizerOn() + } + if (app.cfg.audio.spatial === true) { + CiderAudio.spatialOn() + CiderAudio.hierarchical_loading(); + } + }}) } + else { + CiderAudio.init(); + if (app.cfg.audio.normalization === true) { + CiderAudio.normalizerOn() + } + if (app.cfg.audio.spatial === true) { + CiderAudio.spatialOn() + CiderAudio.hierarchical_loading(); + } + } } else { CiderAudio.off(); }