AudioDeviceStartAtTime(_:_:_:_:)
Declaration
func AudioDeviceStartAtTime(_ inDevice: AudioObjectID, _ inProcID: AudioDeviceIOProcID?, _ ioRequestedStartTime: UnsafeMutablePointer<AudioTimeStamp>, _ inFlags: UInt32) -> OSStatusParameters
- inDevice:
The AudioDevice to start the IOProc on.
- inProcID:
The AudioDeviceIOProcID to start. Note that this can be NULL, which starts the hardware regardless of whether or not there are any IOProcs registered.
- ioRequestedStartTime:
A pointer to an AudioTimeStamp that, on entry, is the requested time to start the IOProc. On exit, it will be the actual time the IOProc will start.
- inFlags:
A UInt32 containing flags that modify how this function behaves.
Return Value
An OSStatus indicating success or failure. kAudioHardwareUnsupportedOperationError will be returned if the AudioDevice does not support starting at a specific time and inProc and ioRequestedStartTime are not NULL.
Discussion
Starts IO for the given AudioDeviceIOProcID and aligns the IO cycle of the AudioDevice with the given time.
See Also
Functions
AudioConvertHostTimeToNanos(_:)AudioConvertNanosToHostTime(_:)AudioDeviceCreateIOProcID(_:_:_:_:)AudioDeviceCreateIOProcIDWithBlock(_:_:_:_:)AudioDeviceDestroyIOProcID(_:_:)AudioDeviceGetCurrentTime(_:_:)AudioDeviceGetNearestStartTime(_:_:_:)AudioDeviceStart(_:_:)AudioDeviceStop(_:_:)AudioDeviceTranslateTime(_:_:_:)AudioGetCurrentHostTime()AudioGetHostClockFrequency()AudioGetHostClockMinimumTimeDelta()AudioHardwareCreateAggregateDevice(_:_:)AudioHardwareDestroyAggregateDevice(_:)