• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting AUHAL buffer size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Setting AUHAL buffer size (From: Malcolm Haylock <email@hidden>)

  • Prev by Date: Re: Capturing output audio
  • Next by Date: Re: I/O Latency (Was: Layman with a mission)
  • Previous by thread: Setting AUHAL buffer size
  • Next by thread: aupreset file question
  • Index(es):
    • Date
    • Thread