question about AudioUnit render buffer size
question about AudioUnit render buffer size
- Subject: question about AudioUnit render buffer size
- From: Brad Garton <email@hidden>
- Date: Fri, 16 Apr 2010 12:18:32 -0400
Hey list --
I'm probably being really dense here: I'd like to determine ahead-of-time the actual size (in frames) of the AudioBuffers used in the AudioUnitRender(). e.g. in this call:
AudioUnitRender(rioUnit, ioActionFlags, inTimeStamp, 1, inNumberFrames, ioData);
I'd like to know what "inNumberFrames" will be prior to starting the AudioUnit (rioUnit is the RemoteIO AudioUnit I'm using). Doing an
AudioSessionGetProperty(kAudioSessionProperty_CurrentHardwareIOBufferDuration, ...)
doesn't seem to do the trick, and setting "kAudioSessionProperty_PreferredHardwareIOBufferDuration" won't *guarantee* an actual number, right?
In the simulator I'm always seeing 512 frames for these buffers, but on the device it seems to set it sort-of properly, but can I be sure (the "preferred" is bothering me)? I'd like to get the Actual Real Number of frames.
brad
http://music.columbia.edu/~brad
_______________________________________________
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