Skip to content

fix(sound): surface permanent music playback errors - #2743

Open
houko wants to merge 4 commits into
mainfrom
fix/issue-2736-music-errors
Open

houko wants to merge 4 commits into
mainfrom
fix/issue-2736-music-errors

Conversation

@houko

@houko houko commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Problem

Music stopped tracks that failed to load or decode but discarded the error, leaving games unable to explain missing music.

Change

  • Add Music.OnError for permanent playback failures.
  • Wrap failures in MusicError with the source and underlying audio error.
  • Keep autoplay NotAllowed on the existing Blocked/Unblock path.
  • Add regression coverage and update English/Chinese sound docs.

Verification

  • go tool nsgo test ./pkg/sound -count=1
  • go tool nsgo check ./pkg/sound
  • bun run verify-notes

@github-actions github-actions Bot added bug Something isn't working documentation Improvements or additions to documentation pkg/sound area/agents size/S labels Dec 1, 2026
@houko
houko force-pushed the fix/issue-2736-music-errors branch from 2cfc346 to a2b94e9 Compare December 1, 2026 05:06

This branch has not been deployed

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

Labels

area/agents bug Something isn't working documentation Improvements or additions to documentation pkg/sound size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant