Is there a way to read audio files from the iPhone music library, or intercept the music the iPhone plays? I was thinking of making an app which generates content from music, either in real time or beforehand (like for example AudioSurf). Is there a way to do that?
+1
A:
I believe you can use the new AVFoundation classes to read and analyze the audio files in the library. I don't think you can inspect live playing audio unless you're the one playing it though.
Joshua Weinberg
2010-07-04 21:35:31
Doesn't matter if I'm the one playing or not. How would you inspect something you play yourself?
quano
2010-07-04 22:36:31
I haven't played with the new classes all that much, but you should be able to start a session using AVAsset to grab the audio file, you could then play it using the normal APIs (AudioQueue, etc) and inspect the data as it decompresses.
Joshua Weinberg
2010-07-05 01:04:34