Skip to content

Commit

Permalink
added saturated sine optimized for looping, improved SoundClip, see #166
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Jul 31, 2019
1 parent 7a571f5 commit 7db5e4c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added assets/saturated-sine.wav
Binary file not shown.
4 changes: 2 additions & 2 deletions js/gravity-force-lab-basics/view/ForceSoundGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ define( require => {
const PITCH_CENTER_OFFSET = 2;

// sounds
const forceSound = require( 'sound!GRAVITY_FORCE_LAB_BASICS/saturated-sine.mp3' );
const forceSound = require( 'sound!GRAVITY_FORCE_LAB_BASICS/saturated-sine-loop-trimmed.wav' );

class ForceSoundGenerator extends SoundClip {

Expand Down Expand Up @@ -96,7 +96,7 @@ define( require => {

// fade out complete, stop playback
if ( this.fadeCountdownTime === 0 ) {
this.stop();
this.stop( 0 );
}
}
}
Expand Down
Binary file added sounds/saturated-sine-loop-trimmed.wav
Binary file not shown.

0 comments on commit 7db5e4c

Please sign in to comment.