Flash Player 10 Audio
So the Flash Player team have finally relegated the SOUND_COMPLETE hack to the dustbin of failed tech… but replaced it with a far superior technology. You can see all the details over at Tinic Uro’s blog (here, here and here).
Naturally quite excited by this news, I have been doing some development work. Here’s what I needed to get started:
Flash Player 10
Handy doc explaining where to get Flex SDK nightly build and how to use it to target FP10
Standalone Flash Player 10 (Debug Version)
I’ve been refactoring a class library that I have been writing over the last year and a half or so, to see how well this new stuff works. The main obstacle in the refactoring process has been the transition from using standard Arrays to ship the audio data through the application to the use of ByteArrays instead. This seems to offer a significant improvement in performance (although in the debug player it runs like a dog… about 4x slower).
Ultimately the aim is to publish this as a library for all to use, but while I am investigating licensing options and a new site for the library, I will be posting demos here.
Here is a demo application (requires Flash Player 10, it won’t try to auto-update if you don’t have FP10) that demonstrates the following features:
Extracting PCM audio data from MP3 sounds
A feedback delay module
A gain module
A mixing module
A resampler (changes the playback rate)
Below is a schematic of how these modules are chained together.

May 24th, 2008 at 3:47 am
[...] Flash Player 10 Audio, em FlexibleFactory [...]
April 15th, 2009 at 5:29 am
Hi!
It would be wonderful to see the code for your solution!
Regardse / Jonas
February 28th, 2010 at 11:34 pm
Hi, will you put the source? I need a help for a project that i’m doing. Please.
May 28th, 2010 at 1:33 pm
Awesome stuff, I am trying to do the same with combining multiple mp3 sounds into one. Best solution so far is to try and write the bytes to a empty sound.. no luck yet, any advice.