<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAudio",
  "identifier" : "/documentation/CoreAudio/AudioObjectSetPropertyData(_:_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Audio"
    ],
    "preciseIdentifier" : "c:@F@AudioObjectSetPropertyData"
  },
  "title" : "AudioObjectSetPropertyData(_:_:_:_:_:_:)"
}
-->

# AudioObjectSetPropertyData(_:_:_:_:_:_:)

```
func AudioObjectSetPropertyData(_ inObjectID: AudioObjectID, _ inAddress: UnsafePointer<AudioObjectPropertyAddress>, _ inQualifierDataSize: UInt32, _ inQualifierData: UnsafeRawPointer?, _ inDataSize: UInt32, _ inData: UnsafeRawPointer) -> OSStatus
```

## Parameters

`inObjectID`

The AudioObject to change.

`inAddress`

An AudioObjectPropertyAddress indicating which property is being changed.

`inQualifierDataSize`

A UInt32 indicating the size of the buffer pointed to by inQualifierData.
Note that not all properties require qualification, in which case this
value will be 0.

`inQualifierData`

A buffer of data to be used in determining the data of the property being
queried. Note that not all properties require qualification, in which case
this value will be NULL.

`inDataSize`

A UInt32 indicating the size of the buffer pointed to by inData.

`inData`

The buffer containing the data to be used to change the property’s value.

## Return Value

An OSStatus indicating success or failure.

## Discussion

\abstract Tells an AudioObject to change the value of the given property using the
provided data.
\discussion Note that the value of the property should not be considered changed until the
HAL has called the listeners as many properties values are changed
asynchronously.

---

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)