i use eclipse with android sdk 4.0.3 api lvl 15 to create a basic music player application.
I read and found that there are two main classes to play sounds. MediaPlayer and SoundPool. SoundPool has more flexibility regarding sound priority and rate of played sound.
I would also like to draw a visualization graph of the audio.
is there a way to get raw PCM data from the loaded audio asset in order for me to be able to draw the graph ?
is there a way to manipulate the raw data before it's being played on realtime? for example if i want to add real time effects. is that possible with these classes ? or any other ?
the main reason that I want to use one of these classes because they can read audio formats without me needing to read the file and parse the formats to raw PCM data myself.
any information regarding the issue would be greatly appreciated.
thanks!
Kfir
I have been going through one open source project .
in that they have loaded PCM of audio file .
here is the https://github.com/google/ringdroid
hope its help you draw PCM from audio file .