What i would like to do is let the iPhone/iPod Touch users select a song from their iTunes library and do the following things:
1) Play that song and let them control it (pause, stop, start, FFWD and backward).
2) Run through the selected song quickly, and show an audio level visualisation (a graph showing the audio's db levels or such).
3) This is not a must, but is it possible to copy the selected media item to your own app's documents directory (or copy the sound streaming and save that?)
Are these things possible? especially, 1 and 2 i would like to get done. Can i use the AVAudioPlayer for this or need i go into the AudioQueue stuff?
Okay, i created a minimalistic musicplayer using AVAudioPlayer. But i am wondering:
1) if i setMeteringEnabled to TRUE, and capture the average and peak level values, and do peak-average. Will i be able to create the characteristic Audio Graphs with the peaks and valleys from that?
2) Is it possible to "quickly" FFWD through the audio so i can display a graph like mentioned in question 1), without having to play it audible to the user the first time?
Hope someone can answer this for me. Thanks in advance!
Okay i moved on to the MPMusicPlayerController, but i cannot seem to find the contents of the podcast numbers that it contains. The iPod application retrieves this info (select an audio podcast and press the upper right icon; you can see al the subparts listed along with duration time);
is there any way to retrieve that info? I found some api listings at Erica Sadun's site but i cannot find anything usefull among those yet?