Skip to content

Commit 6fd229b

Browse files
committed
Fix HTML5 Audio only looping twice
1 parent e254d7a commit 6fd229b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lime/_internal/backend/html5/HTML5AudioSource.hx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,10 @@ class HTML5AudioSource
261261
var wasLooping = howl.loop(id);
262262
loops--;
263263
updateLoop();
264-
if (wasLooping)
264+
if (wasLooping && howl.playing(id))
265265
{
266266
resetTimer(Std.int((length - (howl.seek(id) * 1000) - parent.offset) / howl.rate(id)));
267+
howl.play(id);
267268
}
268269
else
269270
{

0 commit comments

Comments
 (0)