---
title: Create
framework: audiodriverkit
role: symbol
role_heading: Static Method
path: audiodriverkit/iouseraudioclockdevice/create
---

# Create

Allocates and initializes an instance of the audio clock device class.

## Declaration

```occ
static OSSharedPtr<IOUserAudioClockDevice> Create(IOUserAudioDriver *in_driver, bool in_supports_prewarming, OSString *in_device_uid, OSString *in_model_uid, OSString *in_manufacturer_uid, uint32_t in_zero_timestamp_period);
```

## Parameters

- `in_driver`: The doc://com.apple.audiodriverkit/documentation/AudioDriverKit/IOUserAudioDriver that owns this object.
- `in_supports_prewarming`: A Boolean value that specifies if the device supports prewarming I/O.
- `in_device_uid`: A pointer to an doc://com.apple.documentation/documentation/DriverKit/OSString containing the device UID.
- `in_model_uid`: A pointer to an doc://com.apple.documentation/documentation/DriverKit/OSString containing the model UID.
- `in_manufacturer_uid`: A pointer to an doc://com.apple.documentation/documentation/DriverKit/OSString containing the manufacturer UID.
- `in_zero_timestamp_period`: A doc://com.apple.documentation/documentation/kernel/uint32_t whose value indicates the number of sample frames the host can expect between successive timestamps returned from doc://com.apple.audiodriverkit/documentation/AudioDriverKit/IOUserAudioClockDevice/GetZeroTimestampPeriod. In other words, if doc://com.apple.audiodriverkit/documentation/AudioDriverKit/IOUserAudioClockDevice/GetZeroTimestampPeriod returns a sample time of x, the host can expect that the next valid timestamp it receives will be x + in_zero_timestamp_period.

## Return Value

Return Value An poiner to an IOUserAudioClockDevice, if allocation and initialization succeeded.

## Discussion

Discussion If you subclass IOUserAudioClockDevice to override this class’ behavior, don’t use Create to allocate and initialize the custom subclass.

## See Also

### Creating a Clock Device

- [init](audiodriverkit/iouseraudioclockdevice/init.md)
- [IOUserAudioDriver](audiodriverkit/iouseraudiodriver.md)
