Zeepblok Posted January 21, 2015 Share Posted January 21, 2015 Hi, If I loop my audio file as backgroundmusic is waits a bit between it starts again. Its really anoying. How can I stop this?var music;function preload() {game.load.audio('bgmusic', ['assets/audio/background.mp3', 'assets/audio/background.ogg']);}function create() { music = game.add.audio('bgmusic'); music.play('',0,1,true); Link to comment Share on other sites More sharing options...
richpixel Posted January 24, 2015 Share Posted January 24, 2015 Yea this is also a concern of mine - there is a tool that is supposed to fix this: http://www.compuphase.com/mp3/mp3loops.htmHowever I haven't tried it, and I don't know if it will work in HTML5 Audio... I'm wondering if anyone has a workaround or fix? Link to comment Share on other sites More sharing options...
kleepklep Posted February 20, 2015 Share Posted February 20, 2015 I had the same problem and fixed it by using m4a instead of mp3. Link to comment Share on other sites More sharing options...
ptdnet Posted February 20, 2015 Share Posted February 20, 2015 This is a completely cheap trick but we used it all the time in Flash land... break your song where there's a natural pause. Even something like 1/10th of a second will do. Link to comment Share on other sites More sharing options...
Recommended Posts