Skip to content

Commit aaaaf7e

Browse files
committed
Preparing for doc merge
1 parent 77582fb commit aaaaf7e

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

build/phaser.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7317,8 +7317,8 @@ var Phaser;
73177317
Sound.prototype.setDecodedBuffer = function (data) {
73187318
this._buffer = data;
73197319
this.isDecoding = false;
7320-
this.play();
7321-
};
7320+
//this.play();
7321+
};
73227322
Sound.prototype.play = function () {
73237323
if(this._buffer === null || this.isDecoding === true) {
73247324
return;
@@ -7424,7 +7424,6 @@ var Phaser;
74247424
SoundManager.prototype.play = function (key, volume, loop) {
74257425
if (typeof volume === "undefined") { volume = 1; }
74267426
if (typeof loop === "undefined") { loop = false; }
7427-
var _this = this;
74287427
if(this._context === null) {
74297428
return;
74307429
}
@@ -7437,7 +7436,7 @@ var Phaser;
74377436
var tempSound = new Phaser.Sound(this._context, this._gainNode, null, volume, loop);
74387437
// this is an async process, so we can return the Sound object anyway, it just won't be playing yet
74397438
this.decode(key, function () {
7440-
return _this.play(key);
7439+
return tempSound.play();
74417440
}, tempSound);
74427441
return tempSound;
74437442
}

0 commit comments

Comments
 (0)