Switch hierarchical-loading back to async function (#1133)

By having this function as synchronous, it will error out whenever someone with AudioContext disabled tries to play a track.

Checked back to the previous code before the Phase 1 update, and this function was asynchronous
This commit is contained in:
brandinio 2022-06-05 22:00:59 +01:00 committed by GitHub
parent 58d5e02d40
commit 4034453c03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -906,7 +906,7 @@ const CiderAudio = {
try { for (var i of CiderAudio.audioNodes.audioBands) { i.disconnect(); } CiderAudio.audioNodes.vibrantbassNode = null} catch (e) { }; try { for (var i of CiderAudio.audioNodes.audioBands) { i.disconnect(); } CiderAudio.audioNodes.vibrantbassNode = null} catch (e) { };
console.debug("[Cider][Audio] Finished hierarchical unloading") console.debug("[Cider][Audio] Finished hierarchical unloading")
}, },
hierarchical_loading: function () { hierarchical_loading: async function () {
const configMap = new Map([ const configMap = new Map([
['spatial', app.cfg.audio.maikiwiAudio.spatial === true], ['spatial', app.cfg.audio.maikiwiAudio.spatial === true],
['n5', app.cfg.audio.maikiwiAudio.atmosphereRealizer2 === true], ['n5', app.cfg.audio.maikiwiAudio.atmosphereRealizer2 === true],