Re: skips in file using ExtAudioFileWrite in aac
Re: skips in file using ExtAudioFileWrite in aac
- Subject: Re: skips in file using ExtAudioFileWrite in aac
- From: Hamilton Feltman <email@hidden>
- Date: Mon, 19 Jul 2010 20:31:04 -0700
On Jul 16, 2010, at 10:06 PM, Guy Shaviv wrote:
I've tested my code on the simulator, and on the simulator the AAC file is created fine. So I'm more and more getting the feeling this is something with the hardware encoder on the ipad.
It's working good for me on all arm7 and later devices. No skips. Is there a way to request a software encoder on the ipad or are there any parameters to control the hardware encoder, like how do I set the bit-rate of the file? I only saw a way to specify the AAC encoding type (low-complexity/high-efficiency) but not bit rate?
You want to grab out the AudioConverter from the extAudioFile, then apply settings to it
size = sizeof(AudioConverterRef); AudioConverterRef converter = NULL; err = ExtAudioFileGetProperty(outfile, kExtAudioFileProperty_AudioConverter, &size, &converter);
...
UInt32 theBitRate = 192000; err = AudioConverterSetProperty(converter, kAudioConverterEncodeBitRate, sizeof(theBitRate), &theBitRate);
Hope this helps. |
_______________________________________________
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