From 03d93036c27539398a20161da484a1859b87fccb Mon Sep 17 00:00:00 2001 From: jbphet Date: Fri, 15 Apr 2022 10:13:17 -0600 Subject: [PATCH] changed SoundPlayer to ISoundPlayer, see https://github.com/phetsims/tambo/issues/160 --- js/micro/view/MicroScreenView.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/js/micro/view/MicroScreenView.js b/js/micro/view/MicroScreenView.js index 8df27071..c85293c2 100644 --- a/js/micro/view/MicroScreenView.js +++ b/js/micro/view/MicroScreenView.js @@ -18,16 +18,12 @@ import ModelViewTransform2 from '../../../../phetcommon/js/view/ModelViewTransfo import ResetAllButton from '../../../../scenery-phet/js/buttons/ResetAllButton.js'; import PhetFont from '../../../../scenery-phet/js/PhetFont.js'; import TimeControlNode from '../../../../scenery-phet/js/TimeControlNode.js'; -import { globalKeyStateTracker } from '../../../../scenery/js/imports.js'; -import { KeyboardUtils } from '../../../../scenery/js/imports.js'; -import { AriaHasPopUpMutator } from '../../../../scenery/js/imports.js'; -import { Rectangle } from '../../../../scenery/js/imports.js'; -import { Text } from '../../../../scenery/js/imports.js'; +import { AriaHasPopUpMutator, globalKeyStateTracker, KeyboardUtils, Rectangle, Text } from '../../../../scenery/js/imports.js'; import RectangularPushButton from '../../../../sun/js/buttons/RectangularPushButton.js'; import Dialog from '../../../../sun/js/Dialog.js'; +import nullSoundPlayer from '../../../../tambo/js/shared-sound-players/nullSoundPlayer.js'; import stepForwardSoundPlayer from '../../../../tambo/js/shared-sound-players/stepForwardSoundPlayer.js'; import soundManager from '../../../../tambo/js/soundManager.js'; -import SoundPlayer from '../../../../tambo/js/SoundPlayer.js'; import PhetioCapsule from '../../../../tandem/js/PhetioCapsule.js'; import GreenhouseEffectQueryParameters from '../../common/GreenhouseEffectQueryParameters.js'; import greenhouseEffect from '../../greenhouseEffect.js'; @@ -197,7 +193,7 @@ class MicroScreenView extends ScreenView { tandem: tandem.createTandem( 'showLightSpectrumButton' ), // turn off default sound generation since dialog makes a sound when it opens - soundPlayer: SoundPlayer.NO_SOUND, + soundPlayer: nullSoundPlayer, // pdom innerContent: spectrumButtonLabelString,