Dispatching event when sound seek changes

This commit is contained in:
Pavle Goloskokovic 2018-01-03 21:27:09 +01:00
parent dc796465b7
commit d73208349f

View file

@ -406,6 +406,7 @@ Object.defineProperty(WebAudioSound.prototype, 'seek', {
if (this.isPlaying || this.isPaused) {
value = Math.min(Math.max(0, value), this.duration);
this.currentConfig.seek = value;
this.events.dispatch(new SoundValueEvent(this, 'SOUND_SEEK', value));
}
if (this.isPlaying) {
this.stopAndRemoveBufferSource();