No Clean Feed - Stop Internet Censorship in Australia
«
»

AS3, Flash

bug with mono sound in flash.media.Sound?

03.03.08 | 1 Comment

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!

related

1 Comment

have your say

Add your comment below, or trackback from your own site. Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

:

:


«
»
Close
E-mail It