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

# AudioDeviceGetProperty

```
extern OSStatus AudioDeviceGetProperty(AudioDeviceID inDevice, UInt32 inChannel, Boolean isInput, AudioDevicePropertyID inPropertyID, UInt32 *ioPropertyDataSize, void *outPropertyData);
```

## Parameters

`inDevice`

The AudioDevice to query.

`inChannel`

The channel of the property to query where 0 is the main channel.

`isInput`

Which section of the AudioDevice to query.

`inPropertyID`

The AudioDevicePropertyID 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 object will put the data for the given property.

## Return Value

An OSStatus indicating success or failure.

## Discussion

\abstract Queries an the AudioDevice object 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)