Issue with audioEngine.playMusic [SOLVED]

I’ve this
// use this for initialization
onLoad: function () {
cc.audioEngine.playMusic(this.backgroundMusic,true);
cc.audioEngine.setMusicVolume(0.2);
},

The music works fine, but when arrive at the end appear a gap and start again.
How can I play a loop without gap?

I download the file from http://opengameart.org/content/game-music-loop-intense#

Hi,
in my opinion the problem is with the audio file.
Actually editing it with Audacity, it seems that between 0.000 sec and 0.030 sec there is a silence (your gap).
Take a look to the attached image.
Dom

If the sound is the one displayed by alchimya, I agree with him, your trouble is due to your audio file.

You should try to ‘cut’ that silent part, and to add a fade in at the beginning of the sound and a fade out at the end, to avoid ‘noisy cracks’.

Test your modified audio by playing it in a loop on your sound editor (audacity is a great tool, by the way), and you should have the same result with cc.audioEngine.playMusic


Daniel

thanks for your answer, I’ll try and send you feedback

Thanks , after remove the gap now is working fine.