Skip to content

Commit 5800698

Browse files
Added pause event docs
1 parent 9b4930e commit 5800698

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ var HTML5AudioSound = new Class({
108108
this.currentConfig.seek = this.audio.currentTime
109109
- (this.currentMarker ? this.currentMarker.start : 0);
110110
this.stopAndReleaseAudioTag();
111+
/**
112+
* @event Phaser.Sound.HTML5AudioSound#pause
113+
* @param {Phaser.Sound.HTML5AudioSound} sound - Reference to the sound that emitted event.
114+
*/
111115
this.emit('pause', this);
112116
return true;
113117
},

0 commit comments

Comments
 (0)