From 50847fc4409171e64ff18d426cc37bac9690c569 Mon Sep 17 00:00:00 2001 From: 3dtours Date: Sun, 26 Jul 2026 18:53:12 +0700 Subject: [PATCH] fix: WorkerSynthesizer fallback, remove non-existent BasicSynthesizer --- app/static/js/services/soundfontPlayer.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/static/js/services/soundfontPlayer.js b/app/static/js/services/soundfontPlayer.js index 2a13b0a..4af774e 100644 --- a/app/static/js/services/soundfontPlayer.js +++ b/app/static/js/services/soundfontPlayer.js @@ -65,16 +65,15 @@ console.log("[SonicSF] SpessaSynth initialized via AudioWorklet."); } catch (e) { _initInProgress = false; - console.warn("[SonicSF] SpessaSynth AudioWorklet init failed:", e, "- trying WorkerSynthesizer..."); + console.warn("[SonicSF] AudioWorklet failed, trying WorkerSynthesizer:", e); try { const mod = await import("https://esm.sh/spessasynth_lib@4.3.1"); - const WorkerSynthesizer = mod.WorkerSynthesizer; - _synthInstance = new WorkerSynthesizer(audioContext); + _synthInstance = new mod.WorkerSynthesizer(audioContext); await _synthInstance.isReady; _initialized = true; console.log("[SonicSF] SpessaSynth initialized via Worker."); } catch (e2) { - console.error("[SonicSF] SpessaSynth init failed completely:", e2); + console.error("[SonicSF] All SpessaSynth paths failed:", e2); } } },