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

# GetObjectID

Gets the object’s identifier.

```
IOUserAudioObjectID GetObjectID();
```

## Return Value

The object’s `IOUserAudioObjectID`.

## Discussion

Use this identifier when looking up a driver’s objects with [`GetAudioObjectForObjectID`](/documentation/AudioDriverKit/IOUserAudioDriver/GetAudioObjectForObjectID).

---

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)