AudioTimeStamp in AURenderCallback
AudioTimeStamp in AURenderCallback
- Subject: AudioTimeStamp in AURenderCallback
- From: "Dave O'Neill" <email@hidden>
- Date: Wed, 22 Oct 2014 12:38:52 -0700
I have a question regarding the relationship of The AudioTimeStamp argument to an AURenderCallback to the time the callback is called. Does .mSampleTime represent the first or last sample in ioData? And likewise, does .mHostTime represent the time at which the last sample will be played or the first sample. This came up when I was comparing mach_absolute_time() with .mHostTime, mach_absoluteTime returns a time earlier than .mHostTime by more than a full render-cycle’s time.
eg.
this is within the render callback:
.mTimeStamp 596308229634
mach_absolute 596307650014
and the next callback:
.mTimeStamp 596308786905
mach_absolute 596308201079
You can see that the machine time in the second callback is even earlier than the host time of the first.
Thanks for any help,
Dave
_______________________________________________
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