Skip to content

Commit

Permalink
sound player instead of sound generator for slider sounds, see phetsi…
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed May 27, 2022
1 parent 62337dd commit c5f0a0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion js/common/view/ConcentrationControlPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,6 @@ class ConcentrationSlider extends Node {
concentrationModel.concentrationProperty,
sliderRange
);
soundManager.addSoundGenerator( sliderSoundGenerator );

const slider = new VSlider( concentrationModel.manuallyControlledConcentrationProperty, sliderRange, {
trackSize: new Dimension2( 1, CONCENTRATION_SLIDER_TRACK_HEIGHT ),
Expand Down
4 changes: 2 additions & 2 deletions js/common/view/ConcentrationSliderSoundGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import SoundClip from '../../../../tambo/js/sound-generators/SoundClip.js';
import ValueChangeSoundGenerator from '../../../../tambo/js/sound-generators/ValueChangeSoundGenerator.js';
import ValueChangeSoundPlayer from '../../../../tambo/js/sound-generators/ValueChangeSoundPlayer.js';
import soundManager from '../../../../tambo/js/soundManager.js';
import Range from '../../../../dot/js/Range.js';
import greenhouseEffect from '../../greenhouseEffect.js';
Expand All @@ -18,7 +18,7 @@ import dotRandom from '../../../../dot/js/dotRandom.js';
import IReadOnlyProperty from '../../../../axon/js/IReadOnlyProperty.js';
import ISoundPlayer from '../../../../tambo/js/ISoundPlayer.js';

class ConcentrationSliderSoundGenerator extends ValueChangeSoundGenerator {
class ConcentrationSliderSoundGenerator extends ValueChangeSoundPlayer {

constructor( concentrationProperty: IReadOnlyProperty<number>, valueRange: Range ) {

Expand Down

0 comments on commit c5f0a0d

Please sign in to comment.