Re: Coreaudio-api Digest, Vol 7, Issue 406
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