Skip to content

Commit

Permalink
Disable "user-interface" sounds, see phetsims/circuit-construction-ki…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jan 19, 2021
1 parent 26f3dbf commit 43040c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/circuit-construction-kit-dc-virtual-lab-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import LabScreen from '../../circuit-construction-kit-dc/js/lab/LabScreen.js';
import Sim from '../../joist/js/Sim.js';
import simLauncher from '../../joist/js/simLauncher.js';
import KeyboardUtils from '../../scenery/js/accessibility/KeyboardUtils.js';
import '../../scenery/js/nodes/Image.js'; // Image is required for making toDataURLNodeSynchronous work in the built version
import '../../scenery/js/nodes/Image.js';
import soundManager from '../../tambo/js/soundManager.js'; // Image is required for making toDataURLNodeSynchronous work in the built version
import Tandem from '../../tandem/js/Tandem.js';
import circuitConstructionKitDcVirtualLabStrings from './circuitConstructionKitDcVirtualLabStrings.js';

Expand Down Expand Up @@ -52,5 +53,8 @@ if ( !window.circuitConstructionKitTestSuite ) {
} )
], simOptions );
sim.start();

// Disable sounds for joist/home screen/navigation bar/carousel, but leave sound for the dog bark
soundManager.setOutputLevelForCategory( 'user-interface', 0 );
} );
}

0 comments on commit 43040c3

Please sign in to comment.