mirror of
https://github.com/photonstorm/phaser
synced 2025-02-18 06:58:30 +00:00
Properly setting currentTime variable value when detecting missed looping in update method
This commit is contained in:
parent
5b0cf55bfc
commit
65538e3408
1 changed files with 2 additions and 2 deletions
|
@ -199,8 +199,8 @@ var HTML5AudioSound = new Class({
|
|||
}
|
||||
}
|
||||
else if (currentTime < startTime) {
|
||||
currentTime =
|
||||
this.audio.currentTime += startTime;
|
||||
this.audio.currentTime += startTime;
|
||||
currentTime = this.audio.currentTime;
|
||||
}
|
||||
if (currentTime < this.previousTime) {
|
||||
this.events.dispatch(new SoundEvent(this, 'SOUND_LOOP'));
|
||||
|
|
Loading…
Add table
Reference in a new issue