fix: WorkerSynthesizer fallback, remove non-existent BasicSynthesizer

This commit is contained in:
2026-07-26 18:53:12 +07:00
parent 4d42b8407c
commit 50847fc440
+3 -4
View File
@@ -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);
}
}
},