mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 17:58:23 +00:00
Resuming a sound needs the onended handler adding back in again.
This commit is contained in:
parent
59a72ffa80
commit
0a45223cd4
1 changed files with 5 additions and 0 deletions
|
@ -789,6 +789,11 @@ Phaser.Sound.prototype = {
|
|||
this._sound.loop = true;
|
||||
}
|
||||
|
||||
if (!this.loop && this.currentMarker === '')
|
||||
{
|
||||
this._sound.onended = this.onEndedHandler.bind(this);
|
||||
}
|
||||
|
||||
if (typeof this._sound.start === 'undefined')
|
||||
{
|
||||
this._sound.noteGrainOn(0, p, this.duration);
|
||||
|
|
Loading…
Reference in a new issue