views:

157

answers:

2

Basically, I want to make an audio visualizer. I know it's possible, because my phone came with a few live wallpapers that do it. The problem is, I can't seem to figure out how to do this with the Android API.

My app would pick up the currently playing media stream and then depending upon the volume that is playing at that time, it would display more or less bars on the screen.

How can I do this? It looks like I could do something like this using the microphone, but I want to be able to do it for music, podcasts, etc.

A: 

Look at http://code.google.com/p/moonblink/wiki/Tricorder for an example.

androidworkz
The tricorder app uses the microphone for audio visualization. I want to be able to pull the information from the raw stream so it would work even if you're wearing headphones, and it wouldn't be affected by external noises.
HenryAdamsJr
+1  A: 

The MusicVisualization wallpaper source is available at the AOSP. It basically seems to involve calling MediaPlayer.snoop(), an undocumented method added in Eclair.

adietrich
Thanks! I don't have time to test this before the bounty expires, but this seems to be exactly what I was looking for.
HenryAdamsJr
Thanks, please post a link to your results here!
adietrich