-
Notifications
You must be signed in to change notification settings - Fork 192
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
Updates to PR353 implemented stop button #362
base: main
Are you sure you want to change the base?
Updates to PR353 implemented stop button #362
Conversation
…nfo.json, index.njk, and main.js files for various audio worklet demos. Also, updated styles.css.
…out how why cannot start again
… option and module loaded check and removed stop function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution? Generally looks good, but some minor changes might be necessary.
If you have a fork, can you create a live test web page?
… one pole filter examples also placed resume in startAudio function
… audio worklet node options which has a weird bug needs fixing
…cause on intial call need to enable sound output
…samples into PR353-update-implemented-stop-button
@hoch ok all changes should be good. I tested locally... I am in the process of setting up a live test web page. Does github host that? Also... hopefully i am following protocol with git/github for making these changes |
@hoch Just wondering if you can give clarification on a live test page for this? |
I updated PR 353 with necessary changes for merge. Edited main.js files in:
noise-generator, one-pole-filter, volume-meter, hello-audio-worklet, audio-worklet-node-options
Specifically, I used audioContext.suspend() to allow the user to pause the sound with a stop button. And I added an isModuleLoaded check to avoid redundantly calling addModule. Also added isPlaying to toggle the playing state.