mirror of
https://github.com/photonstorm/phaser
synced 2025-03-01 05:47:28 +00:00
Using playCatchPromise for delayed sound playback
This commit is contained in:
parent
3a7d06b48a
commit
ca614166b1
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ var HTML5AudioSound = new Class({
|
|||
this.audio.currentTime += Math.max(0, time - this.startTime) / 1000;
|
||||
this.startTime = 0;
|
||||
this.previousTime = this.audio.currentTime;
|
||||
this.audio.play();
|
||||
this.playCatchPromise();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue