Skip to content

Commit

Permalink
Rename SoundUtil => SoundUtils, see phetsims/tasks#966
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Dec 30, 2019
1 parent 02a1049 commit db23b98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions js/SoundUtil.js → js/SoundUtils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2019, University of Colorado Boulder
// Copyright 2018-2019, University of Colorado Boulder

/**
* a singleton object with functions for analyzing and manipulated sound data
Expand All @@ -19,7 +19,7 @@ define( require => {
/**
* sound utility object definition
*/
const SoundUtil = {
const SoundUtils = {

/**
* helper function that sets the start and end points for a decoded set of sound samples based on where the sound
Expand Down Expand Up @@ -163,7 +163,7 @@ define( require => {
}
}

tambo.register( 'SoundUtil', SoundUtil );
tambo.register( 'SoundUtils', SoundUtils );

return SoundUtil;
return SoundUtils;
} );
4 changes: 2 additions & 2 deletions js/sound-generators/SoundClip.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ define( require => {
const soundConstants = require( 'TAMBO/soundConstants' );
const SoundGenerator = require( 'TAMBO/sound-generators/SoundGenerator' );
const soundInfoDecoder = require( 'TAMBO/soundInfoDecoder' );
const SoundUtil = require( 'TAMBO/SoundUtil' );
const SoundUtils = require( 'TAMBO/SoundUtils' );
const tambo = require( 'TAMBO/tambo' );

// constants
Expand Down Expand Up @@ -104,7 +104,7 @@ define( require => {
this.audioBuffer = decodedAudioData;

if ( options.trimSilence ) {
const loopBoundsInfo = SoundUtil.detectSoundBounds( decodedAudioData );
const loopBoundsInfo = SoundUtils.detectSoundBounds( decodedAudioData );
this.soundStart = loopBoundsInfo.soundStart;
this.soundEnd = loopBoundsInfo.soundEnd;
}
Expand Down

0 comments on commit db23b98

Please sign in to comment.