• 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
how to access HAL buffer timestamps when using AUHAL?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: how to access HAL buffer timestamps when using AUHAL?
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Re: kAudioConverterSampleRateConverterComplexity on iPhone
  • Next by Date: AudioFileOpenWithCallbacks...
  • Previous by thread: Re: kAudioConverterSampleRateConverterComplexity on iPhone
  • Next by thread: Re: how to access HAL buffer timestamps when using AUHAL?
  • Index(es):
    • Date
    • Thread