Well, like many others, I ran into an mp3 the other day which no matter how much I edited would not loop cleanly in flash.
I was loading the mp3 dynamically, so .wav was not an easy option, and I really just wanted the sound to loop properly. I noticed that whenever I encoded the mp3, it would pad both the beginning and ending of the soundclip with a few milliseconds of silence. Some research into mp3 encoding told me that this miniscule empty data is used to compensate for the playback time of CD’s (forgive me if that data is off the mark). This is great for playback of cd’s, but it sucks for us flash programmers who need perfect, seamless music.
Well, to make a long story short, I figured out an imperfect fix which might work for you too.
I noticed that the amount of silence at the beginning of my mp3 file was exactly .025 seconds. So, instead of using a whole value for
[AS]mySound.start(1, 9999)[/AS]
i used
[AS]mySound.start(.025, 9999)[/AS]
and it made the sound quite a bit better, upgrading it to passing level.
I also do not know how frame rates and / or every individual mp3 file will respond to this method, but I’ll leave that to you guys to figure out.
:bu:
Hope this helps someone,
–EP :thumb: