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

fix audio and midi initialization failure on modern browsers #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

EugenDueck
Copy link

Modern browsers require audio / midi initialization to be originated by user input.

This is a simple fix that does initialization of audio and midi on the first click event, rather than automatically onload.

Fixes #29

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

Successfully merging this pull request may close these issues.

new AudioContext() and requestMIDIAccess() do not work on modern browsers
1 participant