mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
Setting hasLooped flag when sound has ended and is supposed to loop
This commit is contained in:
parent
879e52a735
commit
a766ff9c2c
1 changed files with 1 additions and 2 deletions
|
@ -145,8 +145,7 @@ var WebAudioSound = new Class({
|
|||
if (ev.target === _this.source) {
|
||||
// sound ended
|
||||
if (_this.currentConfig.loop) {
|
||||
_this.resetConfig();
|
||||
_this.createAndStartBufferSource();
|
||||
_this.hasLooped = true;
|
||||
}
|
||||
else {
|
||||
_this.hasEnded = true;
|
||||
|
|
Loading…
Reference in a new issue