Skip to content

Commit fbc7264

Browse files
Dispatching event when calling pause method
1 parent 17985a0 commit fbc7264

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ var WebAudioSound = new Class({
120120
// \/\/\/ isPlaying = false, isPaused = true \/\/\/
121121
this.currentConfig.seek = this.getCurrentTime(); // Equivalent to setting paused time
122122
this.stopAndRemoveBufferSource();
123+
this.events.dispatch(new SoundEvent(this, 'SOUND_PAUSE'));
123124
return true;
124125
},
125126
resume: function () {

0 commit comments

Comments
 (0)