<!--
{
  "availability" : [
    "macOS: 10.5.0 - 10.11.0"
  ],
  "documentType" : "symbol",
  "framework" : "AudioToolbox",
  "identifier" : "/documentation/AudioToolbox/AudioHardwareServiceGetPropertyDataSize(_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Audio Toolbox"
    ],
    "preciseIdentifier" : "c:@F@AudioHardwareServiceGetPropertyDataSize"
  },
  "title" : "AudioHardwareServiceGetPropertyDataSize(_:_:_:_:_:)"
}
-->

# AudioHardwareServiceGetPropertyDataSize(_:_:_:_:_:)

Gets the payload size for a given property.

```
func AudioHardwareServiceGetPropertyDataSize(_ inObjectID: AudioObjectID, _ inAddress: UnsafePointer<AudioObjectPropertyAddress>!, _ inQualifierDataSize: UInt32, _ inQualifierData: UnsafeRawPointer!, _ outDataSize: UnsafeMutablePointer<UInt32>!) -> OSStatus
```

## Parameters

`inObjectID`

The HAL audio object to query.

`inAddress`

The property whose payload size you want.

`inQualifierDataSize`

A `UInt32` value indicating the size of the buffer pointed to by the `inQualifierData` parameter. Not all properties require qualification; in such a case you set this parameter to `0`.

`inQualifierData`

A buffer of data to be used in determining the value of the property being queried. Not all properties require qualification; in such a case you set this parameter to `NULL`.

`outDataSize`

A `UInt32` value indicating the size, in bytes, of the payload for the given property.

## Return Value

A result code.

## See Also

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

Gets the value for a specified 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)