@@ -1242,7 +1242,7 @@ this.createjs = this.createjs || {};
12421242 * after it is created.
12431243 * @static
12441244 */
1245- s . play = function ( props ) {
1245+ s . play = function ( src , props ) {
12461246 var playProps = createjs . PlayPropsConfig . create ( props ) ;
12471247 var instance = s . createInstance ( src , playProps . startTime , playProps . duration ) ;
12481248 var ok = s . _playInstance ( instance , playProps ) ;
@@ -1279,7 +1279,7 @@ this.createjs = this.createjs || {};
12791279 * @static
12801280 */
12811281 s . createInstance = function ( src , startTime , duration ) {
1282- if ( ! s . initializeDefaultPlugins ( ) ) { return new createjs . DefaultSoundInstance ( src , startTime , duration ) ; }
1282+ if ( ! s . initializeDefaultPlugins ( ) ) { return new createjs . DefaultSoundInstance ( src , startTime , duration ) ; }
12831283
12841284 var defaultPlayProps = s . _defaultPlayPropsHash [ src ] ; // for audio sprites, which create and store defaults by id
12851285 src = s . _getSrcById ( src ) ;
@@ -1289,11 +1289,11 @@ this.createjs = this.createjs || {};
12891289 var instance = null ;
12901290 if ( details != null && details . src != null ) {
12911291 SoundChannel . create ( details . src ) ;
1292- if ( startTime == null ) { startTime = src . startTime ; }
1292+ if ( startTime == null ) { startTime = src . startTime ; }
12931293 instance = s . activePlugin . create ( details . src , startTime , duration || src . duration ) ;
12941294
12951295 defaultPlayProps = defaultPlayProps || s . _defaultPlayPropsHash [ details . src ] ;
1296- if ( defaultPlayProps ) {
1296+ if ( defaultPlayProps ) {
12971297 instance . applyPlayProps ( defaultPlayProps ) ;
12981298 }
12991299 } else {
0 commit comments