Initializer

init(sampleTime:atRate:)

Initializes a new audio time object with the specified AudioTimeStamp struct and sample rate.

Declaration

init(sampleTime: AVAudioFramePosition, atRate sampleRate: Double)

Parameters

sampleTime

The sample time.

sampleRate

The sample rate.

Return Value

An initialized AVAudioTime instance with the specified AudioTimeStamp and sample rate.

See Also

Creating an Audio Time Instance

init(audioTimeStamp: UnsafePointer<AudioTimeStamp>, sampleRate: Double)

Initializes a new audio time object with the AudioTimeStamp struct and sample rate.

init(hostTime: UInt64)

Initializes a new audio time object with the specified host time.

init(hostTime: UInt64, sampleTime: AVAudioFramePosition, atRate: Double)

Initializes a new audio time object with the specified host time, sample time, and sample rate.

func extrapolateTime(fromAnchor: AVAudioTime) -> AVAudioTime?

Creates an audio time object by converting between host and sample time.