Skip to content

Commit 6b92e34

Browse files
Added play event docs
1 parent 1de4078 commit 6b92e34

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/sound/webaudio/WebAudioSound.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ var WebAudioSound = new Class({
134134
// \/\/\/ isPlaying = true, isPaused = false \/\/\/
135135
this.stopAndRemoveBufferSource();
136136
this.createAndStartBufferSource();
137+
/**
138+
* @event Phaser.Sound.WebAudioSound#play
139+
* @param {Phaser.Sound.WebAudioSound} sound - Reference to the sound that emitted event.
140+
*/
137141
this.emit('play', this);
138142
return true;
139143
},

0 commit comments

Comments
 (0)