Setting hardware buffer sizes
Setting hardware buffer sizes
- Subject: Setting hardware buffer sizes
- From: David Preece <email@hidden>
- Date: Mon, 10 May 2010 20:50:22 +1200
Hi,
I want to set the buffer on some output hardware to "as much as possible". I've been querying kAudioDevicePropertyBufferSizeRange and setting the max value in kAudioDevicePropertyBufferSize but it doesn't work (returns an error status, I don't remember which). Following some dire warnings regarding what is apparently a deprecated API (http://lists.apple.com/archives/coreaudio-api/2009/Jul/msg00158.html) I attempted the same trick using the kAudioDevicePropertyBufferFrameSizeRange, kAudioDevicePropertyBufferFrameSize pair which also fails. One can, however, manually set the FrameSize as 1024 with a BufferSize of 8192 - but I am fully aware that this is dependent on the whims of both the device and it's channel layout.
I'm left with the feeling that I'm clearly missing the point here. I wish to insulate my output from the a render pipeline which has variable latency and hoped setting a large hardware buffer would help. I don't mind the default render callback of 512 frames at a time and don't think there would be any advantage to be had in raising it. Can anyone help?
Cheers,
Dave
_______________________________________________
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