Skip to content

Add listener to wavetable synth for autoplay #415

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

Conversation

mjwilson-google
Copy link
Collaborator

The wavetable synth will not make sound if it is navigated to directly, because there isn't a user gesture so the autoplay rules will be enforced.

This PR adds listeners to allow the user to click or press a key to start playing, even if the page is loaded directly.

@mjwilson-google mjwilson-google requested a review from hoch April 15, 2025 22:17
Copy link
Member

@hoch hoch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with nits

@hoch hoch self-requested a review April 15, 2025 22:35
Copy link
Member

@hoch hoch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Approving)

@mjwilson-google mjwilson-google merged commit 6d7dd71 into GoogleChromeLabs:main Apr 15, 2025
2 of 4 checks passed
@mjwilson-google mjwilson-google deleted the wavetable-synth-autoplay branch April 15, 2025 23:03
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.

2 participants