mHostTime vs mSampleTime
mHostTime vs mSampleTime
- Subject: mHostTime vs mSampleTime
- From: Aran Mulholland <email@hidden>
- Date: Fri, 29 Nov 2013 10:35:01 +1100
I have been looking at a third party library for core audio and have noticed that it does it's scheduling using host time rather than mSampleTime.
In the past when playing with audio I have used the sample time given me by the render callback as the basis for scheduling. I figured that when playing with audio that the time stamp given by the render callback in samples is the source of truth as this is generated by the audio interface.
Can the mHostTime and the mSample time drift from each other? Am I correct in assuming that they are running on different clocks?
Should I continue to use the render callbacks mSampleTime as my source of truth, does it matter which I choose (mSampleTime or mHostTime)?
_______________________________________________
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