From 236fb5ec0e878a9f7b94f554ff42074f2ace1678 Mon Sep 17 00:00:00 2001 From: testadmin Date: Wed, 13 May 2026 14:19:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20stopAll=E5=8F=AAsuspend=E4=B8=8Dresume?= =?UTF-8?q?=EF=BC=8C=E9=98=B2=E6=AD=A2=E5=81=9C=E6=AD=A2=E5=90=8E=E5=A3=B0?= =?UTF-8?q?=E9=9F=B3=E7=AB=8B=E5=8D=B3=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/sound.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/assets/js/sound.js b/src/assets/js/sound.js index a4af1d38..b6917d58 100644 --- a/src/assets/js/sound.js +++ b/src/assets/js/sound.js @@ -322,8 +322,7 @@ function stopAll() { // Stop any Web Audio sources const ctx = getAudioContext() if (ctx && ctx.state === "running") { - // Suspending and resuming is the cleanest way to halt all sources - ctx.suspend().then(() => ctx.resume()).catch(() => {}) + ctx.suspend().catch(() => {}) } // Stop HTML pool elements for (const el of htmlPool) {