• 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: AudioFileCreateWithURL returns -50 error on iPhone Simulator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioFileCreateWithURL returns -50 error on iPhone Simulator


  • Subject: Re: AudioFileCreateWithURL returns -50 error on iPhone Simulator
  • From: Darren Baptiste <email@hidden>
  • Date: Fri, 20 Aug 2010 07:47:34 -0700 (PDT)
  • Date-warning: Date header was inserted by spool002.mac.com

"-50" is a Parameter Error - one of the params you have entered are incorrect/incorrectly formatted.

You can search for this and other error codes from the command line in Terminal by typing at the command prompt:

macerror -50



On 20 Aug, 2010,at 10:39 AM, On Lee <email@hidden> wrote:

I have the following code using iPhone SDK 3.1.3:

 

OSStatus status = AudioFileCreateWithURL(url, kAudioFileWAVEType, &format, kAudioFileFlags_EraseFile, &audioFile);

NSAssert(status == noErr, @"AudioFileCreateWithURL fails");

 

It works fine on iPhone GS device. But it returns “-50” when I run it on iPhone Simulator.

 

There is no “-50” description on Result Codes of Audio File Services References document (http://developer.apple.com/iphone/library/documentation/MusicAudio/Reference/AudioFileConvertRef/Reference/reference.html#//apple_ref/doc/uid/TP40006072-CH8-SW1)

 

What does “-50” mean?

 

Thanks in advance for your help.

 

Best,

-- On Lee

 

_______________________________________________
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
 _______________________________________________
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

  • Follow-Ups:
    • RE: AudioFileCreateWithURL returns -50 error on iPhone Simulator
      • From: On Lee <email@hidden>
References: 
 >AudioFileCreateWithURL returns -50 error on iPhone Simulator (From: "On Lee" <email@hidden>)

  • Prev by Date: Getting playback time from output AudioUnit
  • Next by Date: Re: Getting playback time from output AudioUnit
  • Previous by thread: AudioFileCreateWithURL returns -50 error on iPhone Simulator
  • Next by thread: RE: AudioFileCreateWithURL returns -50 error on iPhone Simulator
  • Index(es):
    • Date
    • Thread