Re: Setting AUHAL buffer size
Re: Setting AUHAL buffer size
- Subject: Re: Setting AUHAL buffer size
- From: Brad Ford <email@hidden>
- Date: Wed, 13 Oct 2004 10:03:15 -0700
kAudioDevicePropertyBufferSize & kAudioDevicePropertyBufferSizeRange
from AudioHardware.h.
These are AudioDeviceGet/SetProperty calls, but you can proxy them
through to the HAL using AudioUnitSet/GetProperty{Info} calls, for
instance:
/* - for reference -
extern OSStatus
AudioDeviceGetProperty( AudioDeviceID inDevice,
UInt32 inChannel,
Boolean isInput,
AudioDevicePropertyID inPropertyID,
UInt32* ioPropertyDataSize,
void* outPropertyData)
*/
size = sizeof(UInt32);
AudioUnitGetProperty(
auhalComponentInstance,
kAudioDevicePropertyBufferSize, // same as parameter 4 in
AudioDeviceGetProperty
0, // a 1 or a 0, same as parameter 3 (isInput) in
AudioDeviceGetProperty
0, // the channel in question, or 0 for "master" channel, same as
parameter 2 (inChannel) in AudioDeviceGetProperty
&aUInt32, // same as parameter 6 in AudioDeviceGetProperty
&size) // same as parameter 5 in AudioDeviceGetProperty
-Brad Ford
QuickTime Engineering
On Oct 13, 2004, at 2:12 AM, Malcolm Haylock wrote:
Hi Everyone,
I'm using AUHAL to interface between my soft sample player and
CorreAudio devices. The buffer size that AUHAL requests each cycle is
512 samples which is too large for realtime playing at 44kHz. I'd
like this to be 256 but can not see a property to set this.
Any ideas?
Thanks,
Malcolm Haylock
_______________________________________________
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
_______________________________________________
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