<!--
{
  "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/AudioQueueSetProperty(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Audio Toolbox"
    ],
    "preciseIdentifier" : "c:@F@AudioQueueSetProperty"
  },
  "title" : "AudioQueueSetProperty(_:_:_:_:)"
}
-->

# AudioQueueSetProperty(_:_:_:_:)

Sets an audio queue property value.

```
func AudioQueueSetProperty(_ inAQ: AudioQueueRef, _ inID: AudioQueuePropertyID, _ inData: UnsafeRawPointer, _ inDataSize: UInt32) -> OSStatus
```

## Parameters

`inAQ`

The audio queue that you want to set a property value on.

`inID`

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

`inData`

The property value to set.

`inDataSize`

The size of the property data.

## Return Value

A result code. See Result Codes.

## Discussion

---

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)