• 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
understanding AudioTimeStamp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

understanding AudioTimeStamp


  • Subject: understanding AudioTimeStamp
  • From: Robert Carroll <email@hidden>
  • Date: Tue, 07 Jan 2014 09:08:49 -0500

My impression is that normally the mSampleTime is the timing information you should need, unless you have a specific reason to convert to mach_absolute_time.
The timebase using information from the machine that the code is running on, ie. the clock frequency etc.

There is some older sample code from Doug Wyatt that covers this. Take a look at CAHostTimebase.h,  & cpp in Core Audio/Public Utilities.

Others on this list can probably be more helpful.

regards,

Robert Carroll
RSM Records
Toronto
http://www.rsmrecords.com



On Jan 6, 2014, at 3:00 PM, email@hidden wrote:

Hi,

I am confused about how to extract current audio data timestamp from audioTimeStamp struct.

I want the current audio data buffer’s data timestamps handed to me from core audio input unit through callback function.

the audioTimeStamp struct include following:

 mHostTime
                       The host machine's time base, mach_absolute_time.

what is the “base”?

How do I use this to get the audio sample timestamp in mach_absolute_time?


Thanks for the help.

 _______________________________________________
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: understanding AudioTimeStamp
      • From: Tusi Chowdhury <email@hidden>
  • Prev by Date: RE: clean AudioServerDriver plugin unload
  • Next by Date: audiograph 5ms fade
  • Previous by thread: understanding AudioTimeStamp
  • Next by thread: Re: understanding AudioTimeStamp
  • Index(es):
    • Date
    • Thread