<!--
{
  "availability" : [
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.0.0 - 10.6.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAudio",
  "identifier" : "/documentation/CoreAudio/AudioHardwareGetProperty",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Audio"
    ],
    "preciseIdentifier" : "c:@F@AudioHardwareGetProperty"
  },
  "title" : "AudioHardwareGetProperty"
}
-->

# AudioHardwareGetProperty

```
extern OSStatus AudioHardwareGetProperty(AudioHardwarePropertyID inPropertyID, UInt32 *ioPropertyDataSize, void *outPropertyData);
```

## Parameters

`inPropertyID`

The AudioHardwarePropertyID of the property to query.

`ioPropertyDataSize`

A UInt32 which on entry indicates the size of the buffer pointed to by
outData and on exit indicates how much of the buffer was used.

`outPropertyData`

The buffer into which the AudioSystemObject will put the data for the given
property.

## Return Value

An OSStatus indicating success or failure.

## Discussion

\abstract Queries an the AudioSystemObject to get the data of the given property and
places it in the provided buffer.
\discussion Note that the same functionality is provided by the function
AudioObjectGetPropertyData().

---

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)