Skip to content

Commit

Permalink
use timeConstant=0 on this.setOutputLevel, #45
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Jun 14, 2021
1 parent fdf6627 commit 3907dc5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/discrete/view/FourierSoundGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ class FourierSoundGenerator extends SoundGenerator {

// Set the master output level. unlink is not needed.
outputLevelProperty.link( outputLevel => {
this.setOutputLevel( outputLevel );

// See comment above about timeConstant.
const timeConstant = enabledProperty.value ? undefined : 0;
this.setOutputLevel( outputLevel, timeConstant );
phet.log && phet.log( `FourierSoundGenerator outputLevel=${outputLevel}` );
} );

Expand Down

0 comments on commit 3907dc5

Please sign in to comment.