Archive

Posts Tagged ‘Audio’

Beep And Other Sounds Part 2

March 28th, 2011 3 comments

If you’ve read part 1, you already know how to generate sound – just pass some values into a ByteArray when a SampleDataEvent event fires – so now let’s see what kind of noises we can make.
Read more…

Beep And Other Sounds Part 1

March 24th, 2011 No comments

If you are an old codger like me, you will (fondly?) remember the sounds of early computer games. They were mostly monotone beeps and bips, but there were some real gems that took the audio experience seriously (think Defender) and used the simple audio abilities in more interesting ways.

Now, just 30 years later, Flash can also generate it’s own sound…
Read more…

Creating An Audio Visualiser

January 17th, 2011 No comments

Today i am going to show you how to create a simple audio visualiser. Using the SoundMixer class we can sample whatever audio is currently playing and it’s a doddle to use:

var bytes:ByteArray = new ByteArray();
var fft:Boolean = false;
var stretch:int = 0;
SoundMixer.computeSpectrum(bytes, fft, stretch);

Read more…