Playing an external sound clip on a loop.
Hi, sorry if this is an obvious thing, but I can't seem to find the answer.
I've made a simple HTML5 game and want to use a sound clip on a loop to give an ambient background noise. The method I've been using to play sounds is:
var ambience = new Audio('jungleSounds.aac');
ambience.play();
It works fine for one-off sound effects triggered but button clicks etc, but how would I loop a sound like this so that it plays continuously?
Thanks.
