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

Update to Web Audio policy change #5

Open
bobbicodes opened this issue Jun 7, 2020 · 0 comments
Open

Update to Web Audio policy change #5

bobbicodes opened this issue Jun 7, 2020 · 0 comments

Comments

@bobbicodes
Copy link
Owner

...or, Resume AudioContext all the things.

A (sort of) recent change to the Chrome browser audio policy requires the Web Audio engine to be resumed once suspended if not explicitly started from within a user event.

We are currently dealing with this by resuming the AudioContext on certain events, if I recall correctly it is upon note entry.

This seems preferable to forcing the user to "Click here to begin" or the like, but this should be abstracted into a resume function that can be universally applied to other events that may have been overlooked. It will also make it more clear what it is doing.

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