Re: ExtAudioFileOpenURL and ExtAudioFileWrapAudioFileID crashes- EXEC_BAD_ACCESS
Re: ExtAudioFileOpenURL and ExtAudioFileWrapAudioFileID crashes- EXEC_BAD_ACCESS
- Subject: Re: ExtAudioFileOpenURL and ExtAudioFileWrapAudioFileID crashes- EXEC_BAD_ACCESS
- From: David Duncan <email@hidden>
- Date: Tue, 23 Dec 2008 09:05:18 -0800
On Dec 23, 2008, at 2:47 AM, Sameera Benagal wrote: 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.
If you need to convert MP3, AAC or ALAC compressed audio (even in a caf) then you aren't going to get very far currently... 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.
Knowing what you mean by "your application crashes" would be useful. You should also check to ensure that all your variables are being initialized as you expect. BTW i'm having iPhone 2.1
And the path that you are using isn't going to work on iPhone OS (it may work in the simulator and if you are crashing there it may be due to a known issue with Quicktime codecs and Core Audio in the simulator -- but you haven't given us enough information to conclude that). -- Reality is what, when you stop believing in it, doesn't go away. Failure is not an option. It is a privilege reserved for those who try.
David Duncan
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden