AAC recording issues
AAC recording issues
- Subject: AAC recording issues
- From: Jaime Magiera <email@hidden>
- Date: Tue, 20 Nov 2007 16:50:07 -0500
Hello,
An application that I inherited utilizes recording in AAC. I recently
noticed that we're getting "Can't Set Client" errors when attempting
to use 22.05 khz sampling or a bit-rate lower than 64 kbps. Has
anything changed in CoreAudio along those lines? (I would prefer to
record high-quality and export to AAC, but we won't be able to
transition that app in that direction very quickly due to user
document size concerns).
This is basically what I've been doing...
dataFormat.mSampleRate = [[[self documentPreferences]
objectForKey:@"audioSamplingRate"] intValue]; // values of 22050,
44100 or 48000
dataFormat.mFormatID = kAudioFormatMPEG4AAC;
dataFormat.mFormatFlags = 0;
dataFormat.mChannelsPerFrame = [[[self documentPreferences]
objectForKey:@"audioChannelCount"] intValue]; // values of mono or
stereo
dataFormat.mFramesPerPacket = 1024;
dataFormat.mBitsPerChannel = 0;
dataFormat.mBytesPerPacket = dataFormat.mBytesPerFrame = 0;
<snip>
recfile.SetConverterProperty(kAudioConverterEncodeBitRate,
sizeof(UInt32), &bitrate); // values of 32, 64 or 128
As mentioned previously, it's been several years since I did any audio
programming. So, it is likely a coding error. When dealing with VBR in
AAC, I'm a little bit unsure of what I'm doing.
thanks,
Jaime
_______________________________________________
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