i'm currently writing an iOS app that works with audio files, and one part of the app is to create the waveform of an audio file. Therefore i need an AVURLAsset object so that the AVAssetReader can get the data of the audio file.
No problem there with songs from the iPod library on the iPhone/iPad, but when i try to get the AVURLAsset object for an audio file in the documents folder of the app, something goes wrong.
I have the NSURL of the local song, and playback with AVAudioPlayer works, but when trying to read the AVURLAsset with AVAssetReader, the App crashes.
Does anyone know why this error occurs?
Thanks!
chris