We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c50da1 commit 94b247cCopy full SHA for 94b247c
src/howler.core.js
@@ -1463,6 +1463,18 @@
1463
if (loop) {
1464
sound._node.bufferSource.loopStart = sound._start || 0;
1465
sound._node.bufferSource.loopEnd = sound._stop;
1466
+
1467
+ if (self.playing(ids[i])) {
1468
+ // Buffer needs to be refreshed if an active audio is playing as some browsers, like Firefox, will not loop otherwise
1469
+ self._refreshBuffer(sound);
1470
1471
+ // Play the sound using the supported method.
1472
+ if (typeof sound._node.bufferSource.start === 'undefined') {
1473
+ sound._node.bufferSource.noteGrainOn(0, self.seek(ids[i]), 86400);
1474
+ } else {
1475
+ sound._node.bufferSource.start(0, self.seek(ids[i]), 86400);
1476
+ }
1477
1478
}
1479
1480
0 commit comments