microsoft / microsoft/pxt-microbit

Melody editor: audio feedback stops working on Firefox

Open
#6,663 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

browser-compat field editor P2
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:

  1. 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)
  2. Open a melody editor with keyboard or mouse controls
  3. Tab to edit the melody
  4. Use arrow keys to adjust
  5. You should get audio feedback for each one
  6. In reality you get a few and they it stops working
  7. See console
  8. The "play" button in the editor also stops working
  9. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.