Sound effects/music do not loop

Sound effects/music do not loop
0.0 0


The loop flag for music/sound effects playing isn’t honored e.g.

gSound.playMusic(s_background1, true);

Will play the music once.


Also found that playMusic will not play the same thing more than once, playEffect doesn’t have that problem.


I made this change in SimpleAudioEngine.js

if (cc.Browser.supportWebAudio ){//}&& (/iPhone OS/.test(ua)||/iPad/.test(ua))) {

that allows me to get repeating music (though .mp3 has a nasty delay before the repeat, ogg is ok). I’ve been testing this stuff on Chrome and Safari btw. The audio tag is supported in those browsers and tests confirm they are working so something is going on with the html5 imp.