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

# GetAudioObjectForObjectID

Gets a pointer to an audio object, given the object’s identifier.

```
OSSharedPtr<IOUserAudioObject> GetAudioObjectForObjectID(IOUserAudioObjectID in_object_id);
```

## Parameters

`in_object_id`

The [`IOUserAudioObjectID`](/documentation/AudioDriverKit/AudioDriverKit/IOUserAudioObjectID) of an object previously added to the driver.

## Return Value

An `OSSharedPtr` to an [`IOUserAudioObject`](/documentation/AudioDriverKit/IOUserAudioObject) if `in_object_id` was found.

---

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)