Skip to content

Commit

Permalink
TypeScript conversion, see phetsims/greenhouse-effect#99
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Jan 12, 2022
1 parent 3be8ecb commit 837139d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions js/sound-generators/SoundClip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 837139d

Please sign in to comment.