From 08f35f32d6e5758877cc64389ea82a9ff9c37e19 Mon Sep 17 00:00:00 2001 From: samreid Date: Fri, 26 Feb 2021 07:41:32 -0700 Subject: [PATCH] Apply WebStorm formatting, see https://github.com/phetsims/phet-info/issues/155 --- js/shared-sound-players/README.md | 3 +-- js/soundManager.js | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/js/shared-sound-players/README.md b/js/shared-sound-players/README.md index 0bbf7e43..6bf7f9ac 100644 --- a/js/shared-sound-players/README.md +++ b/js/shared-sound-players/README.md @@ -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. \ No newline at end of file diff --git a/js/soundManager.js b/js/soundManager.js index 63a1516a..4f966c1f 100644 --- a/js/soundManager.js +++ b/js/soundManager.js @@ -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 = {}; @@ -449,6 +449,7 @@ class SoundManager extends PhetioObject { getMasterOutputLevel() { return this._masterOutputLevel; } + get masterOutputLevel() { return this.getMasterOutputLevel(); } @@ -521,6 +522,7 @@ class SoundManager extends PhetioObject { this._reverbLevel = newReverbLevel; } } + set reverbLevel( reverbLevel ) { this.setReverbLevel( reverbLevel ); } @@ -532,6 +534,7 @@ class SoundManager extends PhetioObject { getReverbLevel() { return this._reverbLevel; } + get reverbLevel() { return this.getReverbLevel(); }