Skip to content

Commit e8c2e67

Browse files
committed
Mistakenly removed src param when changing default parameters.
1 parent 4b6bc17 commit e8c2e67

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/soundjs/Sound.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)