diff --git a/js/balloons-and-static-electricity/view/BASEView.js b/js/balloons-and-static-electricity/view/BASEView.js index 2dd4657c..73c1e97f 100644 --- a/js/balloons-and-static-electricity/view/BASEView.js +++ b/js/balloons-and-static-electricity/view/BASEView.js @@ -88,10 +88,7 @@ class BASEView extends ScreenView { model.balloons, { initialOutputLevel: 0.3, - - enableControlProperties: [ - new DerivedProperty( [ model.showChargesProperty ], showCharges => showCharges === 'all' ) - ] + enabledProperty: new DerivedProperty( [ model.showChargesProperty ], showCharges => showCharges === 'all' ) } ); soundManager.addSoundGenerator( this.chargeDeflectionSoundGenerator ); diff --git a/js/balloons-and-static-electricity/view/BalloonNode.js b/js/balloons-and-static-electricity/view/BalloonNode.js index 3fd04e80..3b14d630 100644 --- a/js/balloons-and-static-electricity/view/BalloonNode.js +++ b/js/balloons-and-static-electricity/view/BalloonNode.js @@ -75,7 +75,7 @@ class BalloonNode extends Node { // {Object} - options passed to the drift velocity sound generator balloonVelocitySoundGeneratorOptions: { - enableControlProperties: [ model.isVisibleProperty ] + enabledProperty: model.isVisibleProperty }, // {Object} - options passed to the balloon rubbing sound generator @@ -251,7 +251,7 @@ class BalloonNode extends Node { // sound generation for charges moving on to this balloon const popSoundGenerator = new PitchedPopGenerator( { - enableControlProperties: [ chargesShownOnBalloonProperty ], + enabledProperty: chargesShownOnBalloonProperty, initialOutputLevel: 0.3 } ); soundManager.addSoundGenerator( popSoundGenerator );