Skip to content

Commit ed27878

Browse files
Added pause event docs
1 parent 6b92e34 commit ed27878

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
@@ -157,6 +157,10 @@ var WebAudioSound = new Class({
157157
// \/\/\/ isPlaying = false, isPaused = true \/\/\/
158158
this.currentConfig.seek = this.getCurrentTime(); // Equivalent to setting paused time
159159
this.stopAndRemoveBufferSource();
160+
/**
161+
* @event Phaser.Sound.WebAudioSound#pause
162+
* @param {Phaser.Sound.WebAudioSound} sound - Reference to the sound that emitted event.
163+
*/
160164
this.emit('pause', this);
161165
return true;
162166
},

0 commit comments

Comments
 (0)