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

# AudioSessionGetPropertySize(_:_:)

Gets the size of the value for a specified audio session property.

```
func AudioSessionGetPropertySize(_ inID: AudioSessionPropertyID, _ outDataSize: UnsafeMutablePointer<UInt32>!) -> OSStatus
```

## Parameters

`inID`

The identifier for the audio session property whose value you want to get the size of.

`outDataSize`

On output, the size of the property value.

## Return Value

A result code. See Result Codes.

## Discussion

Audio session properties are listed and described in [Audio Session Property Identifiers](/documentation/AudioToolbox/1618455-audio-session-property-identifie).

## See Also

[`AudioSessionGetProperty`](/documentation/AudioToolbox/AudioSessionGetProperty(_:_:_:))

Gets the value of a specified audio session property.

[`AudioSessionSetProperty`](/documentation/AudioToolbox/AudioSessionSetProperty(_:_:_:))

Sets the value of a specified audio session property.



---

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)