<!--
{
  "availability" : [
    "DriverKit: 21.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioDriverKit",
  "identifier" : "/documentation/AudioDriverKit/IOUserAudioClockDevice/SetZeroTimeStampPeriod",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AudioDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserAudioClockDevice@F@SetZeroTimeStampPeriod#i#"
  },
  "title" : "SetZeroTimeStampPeriod"
}
-->

# SetZeroTimeStampPeriod

Sets the zero time stamp of the clock device.

```
kern_return_t SetZeroTimeStampPeriod(uint32_t in_zts_period);
```

## Parameters

`in_zts_period`

The zero time stamp period.

## Return Value

<doc://com.apple.documentation/documentation/DriverKit/kIOReturnSuccess> on success, or another value if an error occurs. For a list of error codes, see <doc://com.apple.documentation/documentation/DriverKit/error-codes>.

## Discussion

The parameter indicates the number of sample frames the host can expect between successive timestamps returned from [`GetCurrentZeroTimestamp`](/documentation/AudioDriverKit/IOUserAudioClockDevice/GetCurrentZeroTimestamp). In other words, if [`GetCurrentZeroTimestamp`](/documentation/AudioDriverKit/IOUserAudioClockDevice/GetCurrentZeroTimestamp) returns a sample time of `x`, the host can expect that the next valid timestamp it recieves will be `x + in_zero_timestamp_period`.

Only set this value during the [`PerformDeviceConfigurationChange`](/documentation/AudioDriverKit/IOUserAudioClockDevice/PerformDeviceConfigurationChange) call. If you need to change the value at any other time, call [`RequestDeviceConfigurationChange`](/documentation/AudioDriverKit/IOUserAudioClockDevice/RequestDeviceConfigurationChange). This allows I/O to stop and calls [`PerformDeviceConfigurationChange`](/documentation/AudioDriverKit/IOUserAudioClockDevice/PerformDeviceConfigurationChange), during which you can set the value.

This method synchronizes by using the work queue created by the object.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)