Skip to content

Commit 18cd227

Browse files
Added reset method docs
1 parent a2fdf7c commit 18cd227

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,13 @@ var HTML5AudioSound = new Class({
254254
this.startTime = 0;
255255
this.previousTime = 0;
256256
},
257+
/**
258+
* Method used internally to reset sound state, usually when stopping sound
259+
* or when hijacking audio tag from another sound.
260+
*
261+
* @private
262+
* @method Phaser.Sound.HTML5AudioSound#reset
263+
*/
257264
reset: function () {
258265
BaseSound.prototype.stop.call(this);
259266
},

0 commit comments

Comments
 (0)