I think I’ve found a bug in flash.media.Sound.
Anyone who’s done much audio work in Flash will be aware of the sample rate and variable bitrate gotchas. From trial and error, it looks like I’ve run into another problem. I’ve tried playing a sound from a certain position, but Flash will play the sound from a different, wrong position. This would happen with certain files but not others.
Suddenly I realised that it seemed like the wrong position it was actually playing from, was double the position I had asked for. At the same time I realised that I was only experiencing the problem with mono mp3s. Testing this out on various files confirmed the problem.
So there’s an easy workaround – just double the milliseconds when you call Sound.play() – but it’s a pretty crap state of affairs.
Seems like I only post nowadays to moan but .. this should be basic stuff to get right, for a multimedia platform!




I believe the bug is this bug reported in the Adobe bug tracker: http://bugs.adobe.com/jira/browse/FP-33