phetsims / wave-interference

"Wave Interference" is an educational simulation in HTML5, by PhET Interactive Simulations.
MIT License
19 stars 5 forks source link

Remove the wave source button depress (or pop up) sound when the single wave option is chosen #479

Closed Ashton-Morris closed 4 years ago

Ashton-Morris commented 4 years ago

When you are testing the sound with the single wave option chosen you hear the button pop up which is very distracting from the learning goals of focusing on the wave.

Also when you press the reset button you can also hear the Wave Source button depress.

If you can remove the sound from playing in those two instances it would be preferable. Alternatively it could just never play a sound when the button is depressing or popping up.

emily-phet commented 4 years ago

@samreid - I totally agree with @Ashton-Morris, the pop-up sound needs to not happen for the single wave button.

For the reset button - no other sounds should ever play, except for the single reset sound. (nice catch @Ashton-Morris)

samreid commented 4 years ago

The best way to implement this would be if RoundStickyToggleButton had the same level of sound support that RoundPushButton has.

samreid commented 4 years ago

I followed the example in RoundPushButton and applied it in RoundStickyToggleButton. As far as I can tell it has the same sound as requested for this sim. It also fixes the auto-play problems on reset and switching modes. @jbphet can you please review this change?

samreid commented 4 years ago

We reviewed this and agreed it sounds good, closing.