-
fix(shell): mute launcher audio while minimized behind a game
release / Build Windows .zip (push) Canceled after 0sreleased this
2026-06-14 12:17:41 +03:00 | 27 commits to main since this releaseAfter launching a game the shell minimizes (MinimizeSelf), but the ambient pad kept playing over the game. ShellApp's visibilitychange->stopAmbient never fired because WebView2 doesn't set document.hidden on an OS-level minimize.
Route all launcher sound (nav tones + ambient) through one master GainNode and add setMuted(); call it explicitly from doLaunch (mute on minimize) and the playtime:changed endedAt handler (unmute + restart ambient on game exit). Click-free exponential ramps; ambient source keeps running so it resumes seamlessly.
Docs: decision 0029, refreshed the stale Sound rule in frontend-ui.md, CLAUDE.md index.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Downloads