I am developing an application in iPhone. In this application I am required to convert audio file from one format to another. I used ExtAudioFileOpenUrl.
Here is the code...
NSString *str = [NSString stringWithString:@"/Users/myhome/Desktop/test.caf"];
NSURL *Url = "" style="color: #5c2699">NSURL fileURLWithPath:str];
ExtAudioFileRef audio = NULL;
OSStatus ret = ExtAudioFileOpenURL((CFURLRef)Url, &audio);
But my application crashes when ExtAudioFileOpenURL executes.
I have also tried using the following..
AudioFileID fileID;
OSStatus ret = AudioFileOpenURL((CFURLRef)Url, 0X01, kAudioFileCAFType, &fileID);
ret = ExtAudioFileWrapAudioFileID(fileID, false, &audio);
My application also crashed in ExtAudioFileWrapAudioFileID...
I am just wondering whether I am doing the right thing or is it bug of ExtendedAudioFile?
Kindly guide me regarding this.
BTW i'm having iPhone 2.1
Thanks in advance
Sameera