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

Prevent click when stopping sounds #42

Open
ericrosenbaum opened this issue May 24, 2017 · 0 comments
Open

Prevent click when stopping sounds #42

ericrosenbaum opened this issue May 24, 2017 · 0 comments
Milestone

Comments

@ericrosenbaum
Copy link
Collaborator

Expected behavior

It should be possible to stop a sound while it's playing without causing a click.

Actual behavior

We're getting click sounds in several situations when sounds are stopped. This includes stopping sounds using the stop button, using the "stop all sounds" block, stopping and restarting a sound by playing it in a loop, and while navigating the sound library by hovering over sounds.

Steps to reproduce

Click the sounds tab
Click "Add Sound"
Add the sound "C Bass"
Run the following stack:
screen shot 2017-05-24 at 11 39 49 am

Things to try

Fortunately, in all these clicky situations, the same stop() function is called, here. We should be able to add a gain node to each bufferSourceNode and schedule a very short ramp down before stopping it.

Operating system and browser

Mac OS 10.11.6 Chrome 58.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants