Skip to content

Commit

Permalink
added play/pause button sound generation, see phetsims/tambo#73
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Nov 19, 2019
1 parent b407a01 commit 3a0f866
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion js/buttons/PlayPauseButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ define( require => {
const merge = require( 'PHET_CORE/merge' );
const Path = require( 'SCENERY/nodes/Path' );
const PauseIconShape = require( 'SCENERY_PHET/PauseIconShape' );
const pauseSoundPlayer = require( 'TAMBO/shared-sound-players/pauseSoundPlayer' );
const PlayIconShape = require( 'SCENERY_PHET/PlayIconShape' );
const playSoundPlayer = require( 'TAMBO/shared-sound-players/playSoundPlayer' );
const sceneryPhet = require( 'SCENERY_PHET/sceneryPhet' );
const SceneryPhetA11yStrings = require( 'SCENERY_PHET/SceneryPhetA11yStrings' );

Expand All @@ -42,7 +44,12 @@ define( require => {
radius: DEFAULT_RADIUS,
containerTagName: 'div',
a11yPauseDescription: pauseDescriptionString,
a11yPlayDescription: playDescriptionString
a11yPlayDescription: playDescriptionString,

// sound generation
valueOffSoundPlayer: pauseSoundPlayer,
valueOnSoundPlayer: playSoundPlayer

}, options );

this.isPlayingProperty = isPlayingProperty; // @private
Expand Down

0 comments on commit 3a0f866

Please sign in to comment.