mirror of
https://github.com/photonstorm/phaser
synced 2025-02-25 03:47:24 +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) {
|
if (ev.target === _this.source) {
|
||||||
// sound ended
|
// sound ended
|
||||||
if (_this.currentConfig.loop) {
|
if (_this.currentConfig.loop) {
|
||||||
_this.resetConfig();
|
_this.hasLooped = true;
|
||||||
_this.createAndStartBufferSource();
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
_this.hasEnded = true;
|
_this.hasEnded = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue