My android application needs to draw Waveform for the audio recorded as raw pcm using AudioRecord class. I went through the source code of opensource project RingDroid , which shows waveform and process audio in android, but i couldn't understand anything as it is complicated one.
Please show me some code that draw waveform from pcm data.