---
title: "AudioCodecGetPropertyInfo(_:_:_:_:)"
framework: audiotoolbox
role: symbol
role_heading: Function
path: "audiotoolbox/audiocodecgetpropertyinfo(_:_:_:_:)"
---

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

Retrieves information about a codec property.

## Declaration

```swift
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 doc://com.apple.audiotoolbox/documentation/AudioToolbox/1494121-global-codec-properties and doc://com.apple.audiotoolbox/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

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

## Discussion

Discussion Call this function to: get the size of a property value before calling AudioCodecGetProperty(_:_:_:_:) to retrieve the value find out if a property value can be modified before calling AudioCodecSetProperty(_:_:_:_:) to set the value

## See Also

### Accessing Codec Properties

- [AudioCodecGetProperty(_:_:_:_:)](audiotoolbox/audiocodecgetproperty(_:_:_:_:).md)
- [AudioCodecSetProperty(_:_:_:_:)](audiotoolbox/audiocodecsetproperty(_:_:_:_:).md)
