We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b92e34 commit ed27878Copy full SHA for ed27878
1 file changed
src/sound/webaudio/WebAudioSound.js
@@ -157,6 +157,10 @@ var WebAudioSound = new Class({
157
// \/\/\/ isPlaying = false, isPaused = true \/\/\/
158
this.currentConfig.seek = this.getCurrentTime(); // Equivalent to setting paused time
159
this.stopAndRemoveBufferSource();
160
+ /**
161
+ * @event Phaser.Sound.WebAudioSound#pause
162
+ * @param {Phaser.Sound.WebAudioSound} sound - Reference to the sound that emitted event.
163
+ */
164
this.emit('pause', this);
165
return true;
166
},
0 commit comments