Instance Method

initWithHostTime:sampleTime:atRate:

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

Declaration

- (instancetype)initWithHostTime:(uint64_t)hostTime sampleTime:(AVAudioFramePosition)sampleTime atRate:(double)sampleRate;

Parameters

hostTime

The host time.

sampleTime

The sample time.

sampleRate

The sample rate.

Return Value

An initialized AVAudioTime instance with the specified host time, sample time, and sample rate.

See Also

Creating an Audio Time Instance

- initWithAudioTimeStamp:sampleRate:

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

- initWithHostTime:

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

- initWithSampleTime:atRate:

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

+ timeWithAudioTimeStamp:sampleRate:

Creates an audio time object with the specified AudioTimeStamp struct and sample rate.

+ timeWithHostTime:sampleTime:atRate:

Creates an audio time object with the specified host time, sample time, and sample rate.

+ timeWithSampleTime:atRate:

Creates an audio time object with the specified sample time and sample rate.

+ timeWithHostTime:

Creates an audio time object with the specified host time.

- extrapolateTimeFromAnchor:

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