Skip to content

Commit

Permalink
Apply WebStorm formatting, see phetsims/phet-info#155
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Feb 26, 2021
1 parent 3d3b53b commit 08f35f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions js/shared-sound-players/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

This directory contains sound players that are shared between multiple instances of a class that needs to produce the
same sound or sounds in all instances, such as a checkbox or push button. Sharing the sound player reduces memory
same sound or sounds in all instances, such as a checkbox or push button. Sharing the sound player reduces memory
consumption and load time versus creating separate instances of the player in each instance of the class that is using
the sound.
5 changes: 4 additions & 1 deletion js/soundManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class SoundManager extends PhetioObject {
this._reverbLevel = DEFAULT_REVERB_LEVEL;

// @private {Object} - a map of category name to GainNode instances that control gains for that category name,
// will be filled in during init, see the usage of options.categories in the initialize function for more
// will be filled in during init, see the usage of options.categories in the initialize function for more
// information.
this.gainNodesForCategories = {};

Expand Down Expand Up @@ -449,6 +449,7 @@ class SoundManager extends PhetioObject {
getMasterOutputLevel() {
return this._masterOutputLevel;
}

get masterOutputLevel() {
return this.getMasterOutputLevel();
}
Expand Down Expand Up @@ -521,6 +522,7 @@ class SoundManager extends PhetioObject {
this._reverbLevel = newReverbLevel;
}
}

set reverbLevel( reverbLevel ) {
this.setReverbLevel( reverbLevel );
}
Expand All @@ -532,6 +534,7 @@ class SoundManager extends PhetioObject {
getReverbLevel() {
return this._reverbLevel;
}

get reverbLevel() {
return this.getReverbLevel();
}
Expand Down

0 comments on commit 08f35f3

Please sign in to comment.