Hi,
In short: how do I know what the frame count will be, so that I can allocate AudioBufferLists before recording?
I'm following the tech note here:
To allocate the AudioBufferLists I think I need to know how many frames it will be giving me in each render cycle -- the value of the `nFrames' parameter that will get passed to the input callback...
OSStatus myInputCallback(void *, AudioUnitRenderActionFlags *, const AudioTimeStamp *, UInt32, UInt32 nFrames, AudioBufferList *ioAbl) { ...
How do I get that from the audio unit's properties? kAudioUnitProperty_MaximumFramesPerSlice looked promising, but when I tried to read it off the input bus/element, I got the error: kAudioUnitErr_InvalidElement.
thanks,
Rob
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