prevent gap in audio loop

I use ACID to create perfectly formed audio loops. However, when I use them in Corona, there is always an awkward pause between the end of the song when it loops back to the beginning. Does anyone know the best technique to avoid the dreaded silence gap so the audio is seamlessly looped?

levelMusic = audio.loadStream("songLoop.mp3")  
 audio.play(levelMusic, {channel=1, loops=-1})  

My only trick is to add a fade to the end of the track so the loopback is less obvious, but this is not optimal. [import]uid: 132937 topic_id: 35412 reply_id: 335412[/import]

In the past with a different SDK I would occasionally have issues with loops that were in MP3 format. The solution was to resave it as a wav. I haven’t had the issue in Corona but I know I read of someone who did and I believe using a WAV file for any ‘perfect’ loops that noticeable breaks took care of it. [import]uid: 147305 topic_id: 35412 reply_id: 140750[/import]

For my apps, I use .M4A for iOS and .OGG for Android and have not had any problems with looping audio not doing so correctly.

I have not tried .MP3 files. [import]uid: 17827 topic_id: 35412 reply_id: 141312[/import]

In the past with a different SDK I would occasionally have issues with loops that were in MP3 format. The solution was to resave it as a wav. I haven’t had the issue in Corona but I know I read of someone who did and I believe using a WAV file for any ‘perfect’ loops that noticeable breaks took care of it. [import]uid: 147305 topic_id: 35412 reply_id: 140750[/import]

For my apps, I use .M4A for iOS and .OGG for Android and have not had any problems with looping audio not doing so correctly.

I have not tried .MP3 files. [import]uid: 17827 topic_id: 35412 reply_id: 141312[/import]

I’m creating an App that requires seamless looping sounds. I was getting a small ‘click’ between loops of quite short (a few seconds) sound files. I was using WAV files and in my audio editing programs and the finally exported files were 100% seamlessly looping back-to-back, just not in the App.

I needed to get rid of this gap.

After experimenting, I’ve tried all the formats available, increased size of the loop as well as using audio.loadSound(), audio.streamSound() and media.playSound().

I found… 

• No matter the format, the gap would remain.

• The larger the file, the larger the gap between loops.

Does anybody have any input that will help get rid of these clicks and gaps?

Thanks in Advance,

Fixdit

UPDATE: SOLUTION

After further experimentation with the audio file itself, fading out the very last and first milliseconds eradicates the notible gap/‘click’ in loops.

Hope this helps.

I’m creating an App that requires seamless looping sounds. I was getting a small ‘click’ between loops of quite short (a few seconds) sound files. I was using WAV files and in my audio editing programs and the finally exported files were 100% seamlessly looping back-to-back, just not in the App.

I needed to get rid of this gap.

After experimenting, I’ve tried all the formats available, increased size of the loop as well as using audio.loadSound(), audio.streamSound() and media.playSound().

I found… 

• No matter the format, the gap would remain.

• The larger the file, the larger the gap between loops.

Does anybody have any input that will help get rid of these clicks and gaps?

Thanks in Advance,

Fixdit

UPDATE: SOLUTION

After further experimentation with the audio file itself, fading out the very last and first milliseconds eradicates the notible gap/‘click’ in loops.

Hope this helps.