Contents

CMAudioDeviceClockCreateFromAudioDeviceID(allocator:deviceID:clockOut:)

Creates a clock that tracks playback through a Core Audio device with the specified identifier.

Declaration

func CMAudioDeviceClockCreateFromAudioDeviceID(allocator: CFAllocator?, deviceID: AudioDeviceID, clockOut: UnsafeMutablePointer<CMClock?>) -> OSStatus

Parameters

  • allocator:

    Allocator for the new clock; pass Kcfallocatordefault or NULL to use the default allocator.

  • deviceID:

    The Audiodeviceid of the device for which to create a clock.

  • clockOut:

    Upon return, a pointer to the newly created clock.

Overview

See Also

Creating Audio Clocks