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

# SetInputSafetyOffset

Specifies the input safety offset of the device.

```
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

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

---

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)