Instance Method

initWithSampleTime:atRate:

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

Declaration

- (instancetype)initWithSampleTime:(AVAudioFramePosition)sampleTime atRate:(double)sampleRate;

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

- 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.

- initWithHostTime:sampleTime:atRate:

Initializes a new audio time object with the specified host time, sample time, 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.