Skip to content

Commit a766ff9

Browse files
Setting hasLooped flag when sound has ended and is supposed to loop
1 parent 879e52a commit a766ff9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ var WebAudioSound = new Class({
145145
if (ev.target === _this.source) {
146146
// sound ended
147147
if (_this.currentConfig.loop) {
148-
_this.resetConfig();
149-
_this.createAndStartBufferSource();
148+
_this.hasLooped = true;
150149
}
151150
else {
152151
_this.hasEnded = true;

0 commit comments

Comments
 (0)