File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -255,6 +255,7 @@ class SoundPlayer extends EventEmitter {
255255 *
256256 * If the sound is already playing it will stop playback with a quick fade
257257 * out.
258+ * @param {number } startSeconds - start position of sound.
258259 */
259260 play ( startSeconds ) {
260261 if ( this . isStarting ) {
@@ -273,7 +274,7 @@ class SoundPlayer extends EventEmitter {
273274 this . initialize ( ) ;
274275 }
275276
276- if ( typeof startSeconds === " number" ) {
277+ if ( typeof startSeconds === ' number' ) {
277278 this . outputNode . start ( 0 , startSeconds ) ;
278279 } else {
279280 this . outputNode . start ( ) ;
Original file line number Diff line number Diff line change @@ -37,14 +37,15 @@ class VolumeEffect extends Effect {
3737 * Set the effects value.
3838 * @private
3939 * @param {number } value - new value to set effect to
40+ * @param {number } additionalDecay - control strength of decay
4041 */
4142 _set ( value , additionalDecay ) {
4243 this . value = value ;
4344
4445 const { gain} = this . outputNode ;
4546 const { currentTime, DECAY_DURATION } = this . audioEngine ;
4647
47- if ( typeof additionalDecay === " number" ) {
48+ if ( typeof additionalDecay === ' number' ) {
4849 gain . linearRampToValueAtTime ( value / 100 , currentTime + ( DECAY_DURATION + additionalDecay ) ) ;
4950 return ;
5051 }
You can’t perform that action at this time.
0 commit comments