From a5825af47122827b4f98c94b6f65d1add1d255d5 Mon Sep 17 00:00:00 2001 From: Elijah Voigt Date: Tue, 21 Jul 2026 13:14:11 -0700 Subject: [PATCH] Resume AudioContext on user gesture for web audio Browsers (Chrome, Safari, mobile Firefox) create every AudioContext suspended and refuse to start it without a user gesture. Bevy -> rodio -> cpal build their context at startup, so it stayed suspended and no sound played except on lenient desktop Firefox. Wrap the AudioContext constructor in the web shell to track created contexts and resume them on the first pointer/key/touch gesture. Co-Authored-By: Claude Opus 4.8 --- web/index.html | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/web/index.html b/web/index.html index 234156d..3a67db2 100644 --- a/web/index.html +++ b/web/index.html @@ -2,6 +2,41 @@ +