From 3c7a002b2c1e95699bb60c1f882e25f2c3a2f36f Mon Sep 17 00:00:00 2001 From: 3dtours Date: Sun, 26 Jul 2026 19:56:28 +0700 Subject: [PATCH] fix: connect SpessaSynth output to audioCtx.destination Per md/38_FLOWCLIENT.md Phase 1: SpessaSynth output was not connected to speakers. Add synth.connect(audioContext.destination) after construction to route synthesized audio to user speakers. --- app/static/js/services/soundfontPlayer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/static/js/services/soundfontPlayer.js b/app/static/js/services/soundfontPlayer.js index 0e024f3..cbaf6a2 100644 --- a/app/static/js/services/soundfontPlayer.js +++ b/app/static/js/services/soundfontPlayer.js @@ -70,6 +70,7 @@ const procUrl = window.__SpessaSynthCDN + "spessasynth_processor.min.js"; await audioContext.audioWorklet.addModule(procUrl); _synthInstance = new window.SpessaSynthClass(audioContext); + _synthInstance.connect(audioContext.destination); await _synthInstance.isReady; _initialized = true; console.log("[SonicSF] SpessaSynth engine ready."); @@ -78,6 +79,7 @@ try { const mod = await import("https://cdn.jsdelivr.net/npm/spessasynth_lib@4.3.1/dist/index.js"); _synthInstance = new mod.WorkerSynthesizer(audioContext); + _synthInstance.connect(audioContext.destination); await _synthInstance.isReady; _initialized = true; console.log("[SonicSF] WorkerSynthesizer ready.");