microsoft / microsoft/pxt-microbit
Melody editor: audio feedback stops working on Firefox
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 804
- Forks
- 721
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 2
Description
Describe the bug
When using keyboard controls to edit a melody, the sound preview in the melody editor usually stops working after a few sounds. The console shows "Auto-suspended Audio Context". The simulator still plays sounds successfully, but the melody editor won't work again (won't play sounds) without a page reload.
To Reproduce
Steps to reproduce the behavior:
- It doesn't matter if you have the keyboard controls setting on or off (if it is off, you will need to click to open the melody editor first)
- Open a melody editor with keyboard or mouse controls
- Tab to edit the melody
- Use arrow keys to adjust
- You should get audio feedback for each one
- In reality you get a few and they it stops working
- See console
- The "play" button in the editor also stops working
- The sounds in the simulator continue to work
Expected behavior
Preview sounds should continue to function.
Screenshots
Loom demo video here
micro:bit version (please complete the following information):
N/A
Desktop (please complete the following information):
- OS: Win 11
- Browser: Firefox 145.0.2 (64-bit). Can't replicate in Chrome.
Smartphone (please complete the following information):
N/A
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure in the Firefox melody editor while watching the console for “Auto-suspended Audio Context.” Compare the editor’s keyboard-preview and play-button behavior with simulator audio. Done means melody-editor preview sounds continue working without a page reload, including after repeated keyboard adjustments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- audio-video-rtc, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100