mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
Dispatching event when sound seek changes
This commit is contained in:
parent
dc796465b7
commit
d73208349f
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue