Be a Supporter!

mikemike

Main News Movies Games Audio Favorites Reviews Stats 1,304 Fans
Follow mike

Entry #1

visuals

2007-07-18 17:59:33 by mike

If you haven't yet, be sure to check out the new audio visualizer in the Audio Portal! It uses the latest and greatest Flash, so make sure you have Flash Player 9 installed!

This was a blast to program, and I hope you guys enjoy it. If you come across any suggestions or problems, such as error messages popping up, I would appreciate it if you paste them to me in a PM -- thanks!

One cool feature you might not be aware of: you can click on the visualization screen to drop down a menu that lets you switch between the different visualizations.

just a warning, technical stuff follows!

Right now, one big problem happens when you have another noisy Flash page open -- say, YouTube -- while the visualizer is up. The computeSpectrum function, which grabs the waveform data from audio, actually tries to grab it globally from every running instance of the Flash plugin, including the crazy YouTube video you might have open! This is actually a limitation of ActionScript. In turn, this causes Flash to throw a security error -- you aren't allowed to grab sound data from a file outside of the SWF's domain. :X

I currently catch this error and badly generate fake sound data when it happens. But why can't we get the spectrum data for only the current instance of Flash Player? This seems to me like a pretty bad oversight in ActionScript 3.0 and really hurts an otherwise cool feature. Not sure if it's because of technical limitations or what -- what gives, Adobe?

In the future, I'll probably go ahead and convert the audio player and visualizer into Flex components. I avoided Flex for now because I didn't want to add any bloat to the audio player. However, the next update of Flash player will cache the Flex framework, reducing bloat. Using the Flex framework opens the door for lots of cool stuff in the future, too, such as having customizable NG audio players that people can throw onto their webpages. hell, maybe even an Adobe AIR audio player? :O


Comments

You must be logged in to comment on this post.


amargoamargo

2007-08-27 00:12:14

out of all the NG staff, mike is equally as likely to not set me up with coworkers.

and is therefore the worst.


LuisLuis

2007-07-31 13:52:32

mike, im gonna tell your boss youre not updating your userpage blogs often enough. Watch out someones gonna get fired soon!


WoozyjWoozyj

2007-07-28 13:08:26

Mike's the fucking best indeed.


Boris-4-UBoris-4-U

2007-07-27 03:16:05

Out of all the NG staff. Mike's the fucking best.


JarvidJarvid

2007-07-24 21:10:28

It responds to any sounds being played in the browser.


RuckloRucklo

2007-07-24 19:21:22

So, you're the genius behind the audioplayer visuals, eh? That stuff alone made the AP a WHOLE lot more interesting!

Cool to hear there seem to be future ideas for the visuals too! Keep the good work up!


RossRoss

2007-07-22 19:31:40

The audio visualizer is badass beyond compare. Nice job Mike!


JohnnyUtahJohnnyUtah

2007-07-20 05:37:57

mike, i like your moxey.

p.s. makoto is a cunt.


ZendraZendra

2007-07-20 05:01:44

The Audio visuals looks really awesome. Good job!


bobbob

2007-07-19 22:41:55

Ur girl scarez me mike! lolzorz


BrianJoinerBrianJoiner

2007-07-19 17:40:03

mikey fikey fo fikey a-nikey dikey no bikey fee fi fo pikey. mikey!


FamasFamas

2007-07-19 11:19:02

^^^^
What Stamper said.


StamperStamper

2007-07-19 04:04:23

FUCK THIS IS SO FUCKING BORING MIKE HOLY FUCK QUIT BEING BORING AND BE MORE ENTERTAINING

mike responds:

i... i'm so sorry :~(


amargoamargo

2007-07-18 21:36:24

I WANT YOUR AUDIO PORTAL TO COME EXPLOSIVELY ON MY FACE


PandaMimePandaMime

2007-07-18 21:22:32

Looking badass.
Nice job with everything.


jurajjuraj

2007-07-18 18:17:08

Wow! Audio visualizer looks nice. Hell, I visited audio portal homepage and actually stumbled into a rock song... which seems impossible, when one looks how much techno there is :P


DoodlerDoodler

2007-07-18 18:01:49

Hamazing. Good article.