<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.6.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioToolbox",
  "identifier" : "/documentation/AudioToolbox/AudioComponentInstanceGetComponent(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Audio Toolbox"
    ],
    "preciseIdentifier" : "c:@F@AudioComponentInstanceGetComponent"
  },
  "title" : "AudioComponentInstanceGetComponent(_:)"
}
-->

# AudioComponentInstanceGetComponent(_:)

Retrieves a reference to an audio component from an instance of that audio component.

```
func AudioComponentInstanceGetComponent(_ inInstance: AudioComponentInstance) -> AudioComponent
```

## Parameters

`inInstance`

The component instance whose corresponding factory object you want to get. Must not be `NULL`, and you must own the instance (specifically, you must not have previously called [`AudioComponentInstanceDispose(_:)`](/documentation/AudioToolbox/AudioComponentInstanceDispose(_:)) on the instance).

## Return Value

A reference to the desired audio component. If the value provided in the `inInstance` parameter is invalid, returns `NULL`.

## Discussion

Use this function to retrieve a reference to the audio component that was used to instantiate a given audio component instance. You can then query the component for its attributes by calling the [`AudioComponentGetDescription(_:_:)`](/documentation/AudioToolbox/AudioComponentGetDescription(_:_:)) function.

---

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)