AVAudioTime
An object you use to represent a moment in time.
Declaration
class AVAudioTimeOverview
The AVAudioTime object represents a single moment in time in two ways:
As host time, using the system’s basic clock with
mach_absolute_time()As audio samples at a particular sample rate
A single AVAudioTime instance contains either or both representations, meaning it might represent only a sample time, a host time, or both.
Instances of this class are immutable.
Topics
Creating an Audio Time Instance
init(audioTimeStamp:sampleRate:)init(hostTime:)init(hostTime:sampleTime:atRate:)init(sampleTime:atRate:)extrapolateTime(fromAnchor:)