Skip to content

Commit

Permalink
added support for query parameter to set the sound state, see phetsim…
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Sep 24, 2018
1 parent dbbb372 commit 79cf90f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/Sim.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,11 @@ define( function( require ) {
// Set/update global flag values that enable and configure the sound library. These can be controlled through sim
// flags or query params.

// @public (joist-internal, read-only) {boolean} - true if the simulation uses the tambo sound library
this.supportsSound = ( phet.chipper.queryParameters.supportsSound || options.supportsSound ) && !platform.ie;
// @public (joist-internal, read-only) {boolean} - true if the simulation supports sound and sound is enabled
this.supportsSound = ( phet.chipper.queryParameters.supportsSound || options.supportsSound ) &&
( phet.chipper.queryParameters.sound === 'enabled' ||
phet.chipper.queryParameters.sound === 'muted' ) &&
!platform.ie;

// @public (joist-internal, read-only) {boolean} - true if the simulation supports enhanced sound, cannot support
// enhanced without supporting sound in general
Expand Down

0 comments on commit 79cf90f

Please sign in to comment.