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

# AudioDriverPlugInDeviceGetProperty

```
extern OSStatus AudioDriverPlugInDeviceGetProperty(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. Note that if the plug-in does not
implement the given property, it should return
kAudioHardwareUnknownPropertyError to ensure that the HAL handles the property
normally.

## Discussion

\abstract Queries an the AudioDevice object to get the data of the given property and
places it in the provided buffer.

---

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)