<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioToolbox",
  "identifier" : "/documentation/AudioToolbox/AudioQueueGetProperty(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Audio Toolbox"
    ],
    "preciseIdentifier" : "c:@F@AudioQueueGetProperty"
  },
  "title" : "AudioQueueGetProperty(_:_:_:_:)"
}
-->

# AudioQueueGetProperty(_:_:_:_:)

Gets an audio queue property value.

```
func AudioQueueGetProperty(_ inAQ: AudioQueueRef, _ inID: AudioQueuePropertyID, _ outData: UnsafeMutableRawPointer, _ ioDataSize: UnsafeMutablePointer<UInt32>) -> OSStatus
```

## Parameters

`inAQ`

The audio queue that you want to get a property value from.

`inID`

The ID of the property whose value you want to get. See [`AudioQueuePropertyID`](/documentation/AudioToolbox/AudioQueuePropertyID).

`outData`

On output, the desired property value.

`ioDataSize`

On input, the maximum bytes of space the caller expects to receive. On output, the actual data size of the property value.

## Return Value

A result code. See Result Codes.

## Discussion

Before calling this function, you can use the [`AudioQueueGetPropertySize(_:_:_:)`](/documentation/AudioToolbox/AudioQueueGetPropertySize(_:_:_:)) function to determine the size, in bytes, of the value of a specified property. Some properties have values of a specific size, as described in [`AudioQueuePropertyID`](/documentation/AudioToolbox/AudioQueuePropertyID).

### Special Considerations

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).

---

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)