Type Method

timeWithAudioTimeStamp:sampleRate:

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

Declaration

+ (instancetype)timeWithAudioTimeStamp:(const AudioTimeStamp *)ts sampleRate:(double)sampleRate;

Parameters

ts

The AudioTimeStamp struct.

sampleRate

The sample rate.

Return Value

A newly created and 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.

- initWithSampleTime:atRate:

Initializes a new 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.