diff --git a/js/sound-generators/SoundClip.js b/js/sound-generators/SoundClip.js index f6cc497b..4ac599ad 100644 --- a/js/sound-generators/SoundClip.js +++ b/js/sound-generators/SoundClip.js @@ -216,9 +216,7 @@ class SoundClip extends SoundGenerator { * fully prior to stopping the audio playback. * @public */ - stop( delay ) { - - delay = delay === undefined ? DEFAULT_STOP_DELAY : delay; + stop( delay = DEFAULT_STOP_DELAY ) { // Calculate a time constant to fade output level by 99% by the stop time, see Web Audio time constant // information to understand this calculation.