how to access HAL buffer timestamps when using AUHAL?
how to access HAL buffer timestamps when using AUHAL?
- Subject: how to access HAL buffer timestamps when using AUHAL?
- From: "Ross Bencina" <email@hidden>
- Date: Fri, 10 Jul 2009 14:40:17 +1000
Hi Guys
We're using AUHAL in PortAudio and we need to report current time and
timestamps for when the first sample of each buffer is received from/enters
the hardware. My research suggests that when using HAL directly we could use
the mHostTime fields of the inNow, inInputTime and inOutputTime parameters
of AudioDeviceIOProc:
typedef OSStatus (*AudioDeviceIOProc)(
AudioDeviceID inDevice,
const AudioTimeStamp*inNow,
const AudioBufferList*inInputData,
const AudioTimeStamp*inInputTime,
AudioBufferList*outOutputData,
const AudioTimeStamp*inOutputTime,
void*inClientData);
However, the AUHAL render proc looks like this:
OSStatus AudioIOProc( void *inRefCon,
AudioUnitRenderActionFlags *ioActionFlags,
const AudioTimeStamp *inTimeStamp,
UInt32 inBusNumber,
UInt32 inNumberFrames,
AudioBufferList *ioData );
I can't find documentation for what inTimeStamp means in this context. Could
someone please clarify the meaning of it for me?
More importantly, we need access to all three HAL timestamps (now,
inputTime, outputTime). So my question is: how can I recover these three HAL
timestamps from within my AUHAL render proc?
Thanks!
Ross.
_______________________________________________
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