Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulator sound has issues in recent Safari versions #97

Closed
microbit-matt-hillsdon opened this issue Feb 6, 2023 · 0 comments
Closed
Assignees

Comments

@microbit-matt-hillsdon
Copy link
Contributor

In Safari the audio context never leaves the "suspended" state. We only write one frame's worth of data and are never asked for more. This definitely used to work and continues to work on other browsers. Trying old versions of the sim demonstrates that they also don't work so likely the browser has changed.

In the simulator demos it works on second attempt (stop/play). In the Python Editor this doesn't work.

We're supposed to create or resume the audio context from a user interaction. We should try to put an audio context resume call in the event handler itself to make it obviously correct. Currently we post a message requesting a flash and don't touch the context until we get a reply.

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

No branches or pull requests

1 participant