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

# AudioHardwareServiceGetPropertyData(_:_:_:_:_:_:)

Gets the value for a specified property.

```
func AudioHardwareServiceGetPropertyData(_ inObjectID: AudioObjectID, _ inAddress: UnsafePointer<AudioObjectPropertyAddress>!, _ inQualifierDataSize: UInt32, _ inQualifierData: UnsafeRawPointer!, _ ioDataSize: UnsafeMutablePointer<UInt32>!, _ outData: UnsafeMutableRawPointer!) -> OSStatus
```

## Parameters

`inObjectID`

The HAL audio object to query.

`inAddress`

The property whose value 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`.

`ioDataSize`

On input, a `UInt32` value that indicates the size, in bytes, of the buffer pointed to by the `outData` parameter. On exit the size of the buffer that was used.

`outData`

The buffer into which the HAL audio object will put the property value.

## Return Value

A result code.

## Discussion

Some Core Audio property values are C types and others are Core Foundation objects.

If you call this function to retrieve a value that is a Core Foundation object, then this function—despite the use of “Get” in its name—duplicates the object. You are responsible for releasing the object, as described in [The Create Rule](https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html#//apple_ref/doc/uid/20001148-103029) in [Memory Management Programming Guide for Core Foundation](https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/CFMemoryMgmt.html#//apple_ref/doc/uid/10000127i).

## See Also

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

Gets the payload size for a given 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)