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

Updates to PR353 implemented stop button #362

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

duojet2ez
Copy link

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.

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.

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?

src/audio-worklet/basic/audio-worklet-node-options/main.js Outdated Show resolved Hide resolved
src/audio-worklet/basic/audio-worklet-node-options/main.js Outdated Show resolved Hide resolved
src/audio-worklet/basic/audio-worklet-node-options/main.js Outdated Show resolved Hide resolved
src/audio-worklet/basic/noise-generator/main.js Outdated Show resolved Hide resolved
@duojet2ez
Copy link
Author

duojet2ez commented May 21, 2024

@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

@duojet2ez
Copy link
Author

@hoch Just wondering if you can give clarification on a live test page for this?

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.

None yet

3 participants