AS3 – AudioCycleBuffer

After lots of crashes and frailties, I got today the solution for an audio-cycle-buffer (2047 samples). That means, it is possible to synthesize custom sounds and effects nearly in runtime (delay about 47ms). I have no *BIG* example here right now. Just the first running engine. It has a simple SWF embedded, where an empty wavfile is exported. This SWF will be parsed, modified and reloaded to create the sync- and the permanently changing cycle-buffer-sound. The class Cycle provides switching mono/stereo and 8bit/16bit, yet.

Sidenote to Frank: It’s on you to bring the Roland TB-303 to Flash :-) And I have to mention e-phonic and david. They also tried to find a solution on dynamic sound synthesis in flash with pretty cool results.

To have a stable sync in the browser I had to double the cycle-buffer. So the latency is now about 92ms.

Update Enhanced version in my laboratory besides other audio experiements

Update 1.5 years later the Hobnox AudioTool with lots of plugins is available.

15 thoughts on “AS3 – AudioCycleBuffer”

  1. actually the first thing i thought of when i heard that e-phonic synth was a tb303! something about the distorted, 8-bit 11khz buzz sounded all squelchy and acid-y.

  2. Very nice work indeed!!!
    Didn’t had much time to work on my version, but i see it wont be needed anymore ;-)
    Looking forward to play around with it!


  3. You’re modifying a SWF and reloading that? How in the world? If so, doesn’t that process represent a huge security hole in flash player?

  4. oh, you have removed the from your site :(

    I wish I had stored it first time around and not just skimming throught the source in winrar preview..

    Will it be coming back, or is it too good to be handed to public this early :)

  5. Does very weird things when the flash is scrolled out of view or the window looses focus. Seems like the tempo goes way up and the sample get cut off — OSX 10.5.6 Safari 3.2.1

Comments are closed.