audio – How to draw waveform of Android's music player?-ThrowExceptions

Exception or error:

one of the default live wallpapers that came with my phone was a wallpaper that displayed the wave form of music playing in the background in real time. I was wondering how one could go about doing this. It seems I should somehow access the streaming data of the background music and compute the samples in real time, but I have no idea how to get the streaming data. I think I can display the wave form by following this tutorial, but I’m not exactly sure how to do it. Help would be greatly appreciated/

How to solve:

There is an Android class called Visualizer that lets you access audio being played

In addition, since Android is all open source, you can look at how the live wallpaper does it!

Leave a Reply

Your email address will not be published. Required fields are marked *