Files
voicebox/app/src
James PineandClaude Opus 4.7 010c3d5219 fix(audio): prevent WKWebView audio session teardown after backgrounding (#41)
Keep a silent looping <audio> element mounted at the app root so macOS
never tears down the CoreAudio session. Without this, backgrounding the
app long enough leaves WaveSurfer's AudioContext in a state where play()
resolves and timeupdate fires, but no audio reaches the output — and not
even cmd+R (full JS reload) restores it, only a full app relaunch.

Uses a zero-PCM WAV blob at full volume rather than a muted element,
since WebKit can optimize muted media away and defeat the purpose.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
2026-04-18 22:02:45 -07:00
..