• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ExtAudioFileOpenURL and ExtAudioFileWrapAudioFileID crashes- EXEC_BAD_ACCESS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >ExtAudioFileOpenURL and ExtAudioFileWrapAudioFileID crashes- EXEC_BAD_ACCESS (From: Sameera Benagal <email@hidden>)

  • Prev by Date: Changing AudioConverter sample rates on the fly
  • Next by Date: Re: Changing AudioConverter sample rates on the fly
  • Previous by thread: ExtAudioFileOpenURL and ExtAudioFileWrapAudioFileID crashes- EXEC_BAD_ACCESS
  • Next by thread: Changing AudioConverter sample rates on the fly
  • Index(es):
    • Date
    • Thread