• 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
Attempting to create a audio file I get error -50
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Attempting to create a audio file I get error -50


  • Subject: Attempting to create a audio file I get error -50
  • From: Development <email@hidden>
  • Date: Fri, 19 Nov 2010 21:02:53 -0700

I'm attempting to create a new audio file. 

I am using the following code:

ExtAudioFileRef recFile;
self.recordFile = recFile;

bd.mFormatID ='.mp3';
bd.mChannelsPerFrame = 2;
bd.mBytesPerPacket = 2 * bd.mChannelsPerFrame;
bd.mFramesPerPacket = 1;
bd.mBitsPerChannel =8.24;
bd.mBytesPerFrame = ( bd.mBitsPerChannel / 8.24 ) * bd.mChannelsPerFrame;


OSStatus result = ExtAudioFileCreateWithURL((CFURLRef)soundFileURL, kAudioFileMP3Type, &bd,
  NULL, kAudioFileFlags_EraseFile, &recFile);
NSLog(@"Result of Create File %i",result);


The result I always get is -50

Which param am I passing incorrectly?


 _______________________________________________
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: Attempting to create a audio file I get error -50
      • From: tahome izwah <email@hidden>
  • Prev by Date: Re: DLS synth and iOS 4.2
  • Next by Date: Re: DLS synth and iOS 4.2
  • Previous by thread: Re: Not sure why ExtAudioFileCreateWithURL generates error -66672
  • Next by thread: Re: Attempting to create a audio file I get error -50
  • Index(es):
    • Date
    • Thread