-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TypeScript conversion for SoundGenerator/ValueChangeSoundGenerator (a…
…dded ISoundPlayer). See phetsims/scenery-phet#726
- Loading branch information
1 parent
6359234
commit 5b4501d
Showing
6 changed files
with
159 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright 2021, University of Colorado Boulder | ||
|
||
/** | ||
* SoundPlayer is a "definition" type, based off of PaintDef.js, that defines a type that is used in the tambo sound | ||
* library but is not actually a base class. This is similar to the idea of an "interface" in Java. A SoundPlayer type | ||
* is a sound generator that has just the most basic methods for playing a sound. | ||
* | ||
* @author John Blanco (PhET Interactive Simulations) | ||
*/ | ||
|
||
type SoundPlayer = { | ||
play: () => void; | ||
stop: () => void; | ||
}; | ||
|
||
export default SoundPlayer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.