Skip to content

Prevent sound effects from pausing background music on iPhone and Android#209

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/prevent-sound-effects-pause-music-again
Draft

Prevent sound effects from pausing background music on iPhone and Android#209
Copilot wants to merge 2 commits into
mainfrom
copilot/prevent-sound-effects-pause-music-again

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 14, 2026

Summary

  • switched sound-effect playback from direct HTMLAudioElement.play() to a Web Audio API playback path
  • updated checker and dice sounds to use source-based playback so mobile browsers can mix SFX without taking disruptive media focus
  • kept an HTMLAudioElement fallback for environments without AudioContext support
  • added safe retry behavior by clearing cached failed audio-buffer loads

Validation

  • yarn tsc
  • yarn lint ❌ (fails due to pre-existing unrelated lint errors in files outside this change)
  • parallel_validation ✅ (CodeQL: no alerts)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants