• 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: Coreaudio-api Digest, Vol 7, Issue 406
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coreaudio-api Digest, Vol 7, Issue 406


  • Subject: Re: Coreaudio-api Digest, Vol 7, Issue 406
  • From: "Roni Music" <email@hidden>
  • Date: Sat, 20 Nov 2010 21:53:30 +0100


besided that you can not create mp3 files

bd.mBitsPerChannel = 8.24;

is also wrong

mBitsPerChannel is not floating point




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


  • Prev by Date: Re: Attempting to create a audio file I get error -50
  • Next by Date: Audioqueue Runloop blocks my gui
  • Previous by thread: Re: Attempting to create a audio file I get error -50
  • Next by thread: Audioqueue Runloop blocks my gui
  • Index(es):
    • Date
    • Thread