as a host author (and thus responsible for the value of mSampleTime), i can tell you that it corresponds to the *transport* position of the first sample to be processed as part of the render callback.
On Wed, Oct 22, 2014 at 3:38 PM, Dave O'Neill <[email protected]> wrote: > 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. > as a host author (and thus responsible for the value of mSampleTime), i can tell you that nothing I could find in any specs for the AudioUnit specification defines this value, and that in my host(s), it will be the count of the number of samples so far processed by the host since the last audio I/O reset, corresponding to the first sample to be processed by the render callback.
_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com This email sent to [email protected]
