Skip to content

Commit

Permalink
sound query parameter passed to allAudioEnabledProperty as a temporar…
Browse files Browse the repository at this point in the history
…y workaround, see #724
  • Loading branch information
jessegreenberg committed Jul 7, 2021
1 parent eb2a5d9 commit 80c2c76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/Sim.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,9 @@ class Sim extends PhetioObject {

// @public {BooleanProperty} - Whether or not all features involving sound are enabled in the simulation
// (such as sound, enhanced sound, and voicing). When false the sim should be totally silent.
this.allAudioEnabledProperty = new BooleanProperty( true );
// TODO: See https://github.com/phetsims/joist/issues/724 - Temporarily, initial value is set by the "sound"
// query parameter, but should have its own query parameter eventually
this.allAudioEnabledProperty = new BooleanProperty( phet.chipper.queryParameters.sound === 'enabled' );

// Initialize the sound library if enabled, then hook up sound generation for screen changes.
if ( this.supportsSound ) {
Expand Down

0 comments on commit 80c2c76

Please sign in to comment.