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

# AudioCodecGetPropertyInfo(_:_:_:_:)

Retrieves information about a codec property.

```
func AudioCodecGetPropertyInfo(_ inCodec: AudioCodec, _ inPropertyID: AudioCodecPropertyID, _ outSize: UnsafeMutablePointer<UInt32>?, _ outWritable: UnsafeMutablePointer<DarwinBoolean>?) -> OSStatus
```

## Parameters

`inCodec`

An audio codec object. Because an audio codec object is a Component Manger component instance, you can use the Component Manager (for example, the functions <doc://com.apple.documentation/documentation/coreservices/1516552-findnextcomponent> and OpenAComponent) to obtain an audio codec object.

`inPropertyID`

Property ID of the property about which you want to obtain information. Codec property IDs are listed in [Global Codec Properties](/documentation/AudioToolbox/1494121-global-codec-properties) and [Instance Codec Properties](/documentation/AudioToolbox/1494111-instance-codec-properties).

`outSize`

On return, size in bytes of the current value of the property.

`outWritable`

Returns `true` if you can change the value of the property, otherwise `false`.

## Return Value

Returns `NoErr` if successful, otherwise, a result code. See `Result Codes` for a list of possible values.

## Discussion

Call this function to:

- get the size of a property value before calling [`AudioCodecGetProperty(_:_:_:_:)`](/documentation/AudioToolbox/AudioCodecGetProperty(_:_:_:_:)) to retrieve the value
- find out if a property value can be modified before calling [`AudioCodecSetProperty(_:_:_:_:)`](/documentation/AudioToolbox/AudioCodecSetProperty(_:_:_:_:)) to set the value

---

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)