From 80c2c767d2c97ab4a6bfdc49663bf1e145f17355 Mon Sep 17 00:00:00 2001 From: Jesse Date: Tue, 6 Jul 2021 21:51:10 -0400 Subject: [PATCH] sound query parameter passed to allAudioEnabledProperty as a temporary workaround, see https://github.com/phetsims/joist/issues/724 --- js/Sim.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/Sim.js b/js/Sim.js index 2dbb02e0..e64ab63e 100644 --- a/js/Sim.js +++ b/js/Sim.js @@ -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 ) {