---
title: SetOutputLatency
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudioclockdevice/setoutputlatency
---

# SetOutputLatency

Sets the output latency of the clock device.

## Declaration

```occ
kern_return_t SetOutputLatency(uint32_t in_latency);
```

## Parameters

- `in_latency`: The output latency value to set.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurs. For a list of error codes, see Error Codes.

## Discussion

Discussion Drivers can change the output latency of the clock device dynamically. If successful, changing the available output latency sends a notification to the host to update the object state. This method synchronizes by using the work queue created by the object.

## See Also

### Working with Timing and Latency

- [GetSupportsPrewarming](audiodriverkit/iouseraudioclockdevice/getsupportsprewarming.md)
- [SetZeroTimeStampPeriod](audiodriverkit/iouseraudioclockdevice/setzerotimestampperiod.md)
- [GetZeroTimestampPeriod](audiodriverkit/iouseraudioclockdevice/getzerotimestampperiod.md)
- [GetOutputLatency](audiodriverkit/iouseraudioclockdevice/getoutputlatency.md)
- [SetInputLatency](audiodriverkit/iouseraudioclockdevice/setinputlatency.md)
- [GetInputLatency](audiodriverkit/iouseraudioclockdevice/getinputlatency.md)
