AudioQueueDeviceGetNearestStartTime(_:_:_:)
Gets the start time, for an audio hardware device, that is closest to a requested start time.
Declaration
func AudioQueueDeviceGetNearestStartTime(_ inAQ: AudioQueueRef, _ ioRequestedStartTime: UnsafeMutablePointer<AudioTimeStamp>, _ inFlags: UInt32) -> OSStatusParameters
- inAQ:
The audio queue whose associated audio hardware device’s start time you want to get.
- ioRequestedStartTime:
On input, the requested start time. On output, the actual start time.
- inFlags:
Reserved for future use. Pass
0.
Return Value
A result code. See Result Codes.
Discussion
This function asks an audio queue’s associated device for a start time to use for recording or playback. The time returned will be equal to or later than the requested start time, depending on device and system factors. For example, the start time might be shifted to allow for aligning buffer access. The device must be running to use this function.