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
- 18 comments


Comments
You must be logged in to comment on this post.
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.
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!
2007-07-28 13:08:26
Mike's the fucking best indeed.
2007-07-27 03:16:05
Out of all the NG staff. Mike's the fucking best.
2007-07-24 21:10:28
It responds to any sounds being played in the browser.
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!
2007-07-22 19:31:40
The audio visualizer is badass beyond compare. Nice job Mike!
2007-07-20 05:37:57
mike, i like your moxey.
p.s. makoto is a cunt.
2007-07-20 05:01:44
The Audio visuals looks really awesome. Good job!
2007-07-19 22:41:55
Ur girl scarez me mike! lolzorz
2007-07-19 17:40:03
mikey fikey fo fikey a-nikey dikey no bikey fee fi fo pikey. mikey!
2007-07-19 11:19:02
^^^^
What Stamper said.
2007-07-19 04:04:23
FUCK THIS IS SO FUCKING BORING MIKE HOLY FUCK QUIT BEING BORING AND BE MORE ENTERTAINING
i... i'm so sorry :~(
2007-07-18 21:36:24
I WANT YOUR AUDIO PORTAL TO COME EXPLOSIVELY ON MY FACE
2007-07-18 21:22:32
Looking badass.
Nice job with everything.
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
2007-07-18 18:01:49
Hamazing. Good article.