understanding AudioTimeStamp
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
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