AudioDeviceGetProperty question for iOS (kAudioDevicePropertyBufferFrameSize)
AudioDeviceGetProperty question for iOS (kAudioDevicePropertyBufferFrameSize)
- Subject: AudioDeviceGetProperty question for iOS (kAudioDevicePropertyBufferFrameSize)
- From: Luther Baker <email@hidden>
- Date: Thu, 25 Aug 2011 13:17:50 -0500
On the iPhone, how can I determine (in advance) the number of frames my callback will have.
For instance, I've attached a callback to the microphone and I'd like to analyze the incoming data. I don't want to allocate memory in the callback but I noticed that the number of frames while sampling at 22050 was 512 while the number of frames while sampling at 44100 was 1024. In either case though, I don't know the number of frames until the actual parameter gets passed to the callback.
I discovered a few posts on the "AudioDeviceGetProperty" and kAudioDevicePropertyBufferFrameSize parameter ... but even after including a few additional includes - my iPhone app can't find the constant property name. My guess is that this isn't implemented in iOS but maybe I'm just looking in the wrong place.
Thanks,
-Luther
_______________________________________________
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