---
title: SetInputSafetyOffset
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudiodevice/setinputsafetyoffset
---

# SetInputSafetyOffset

Specifies the input safety offset of the device.

## Declaration

```occ
kern_return_t SetInputSafetyOffset(uint32_t in_safety_offset);
```

## Parameters

- `in_safety_offset`: The input safety offset value, as a doc://com.apple.documentation/documentation/kernel/uint32_t.

## 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 The safety offset indicates the number for frames behind the current hardware position that’s safe to perform input I/O.

## See Also

### Working with Safety Offset Behvaior

- [GetInputSafetyOffset](audiodriverkit/iouseraudiodevice/getinputsafetyoffset.md)
- [SetOutputSafetyOffset](audiodriverkit/iouseraudiodevice/setoutputsafetyoffset.md)
- [GetOutputSafetyOffset](audiodriverkit/iouseraudiodevice/getoutputsafetyoffset.md)
