• 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
AAC recording issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Audio Unit and MIDI System-Exclusive
  • Next by Date: ACFLACEncoder loses an input frame?
  • Previous by thread: Re: Anyone know of any pitch recognition DSP libraries ?
  • Next by thread: Re: AAC recording issues
  • Index(es):
    • Date
    • Thread