---
title: "AudioObjectSetPropertyData(_:_:_:_:_:_:)"
framework: coreaudio
role: symbol
role_heading: Function
path: "coreaudio/audioobjectsetpropertydata(_:_:_:_:_:_:)"
---

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

## Declaration

```swift
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

Return Value An OSStatus indicating success or failure.

## Discussion

Discussion Tells an AudioObject to change the value of the given property using the provided data. 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.

## See Also

### Functions

- [AudioConvertHostTimeToNanos(_:)](coreaudio/audioconverthosttimetonanos(_:).md)
- [AudioConvertNanosToHostTime(_:)](coreaudio/audioconvertnanostohosttime(_:).md)
- [AudioDeviceCreateIOProcID(_:_:_:_:)](coreaudio/audiodevicecreateioprocid(_:_:_:_:).md)
- [AudioDeviceCreateIOProcIDWithBlock(_:_:_:_:)](coreaudio/audiodevicecreateioprocidwithblock(_:_:_:_:).md)
- [AudioDeviceDestroyIOProcID(_:_:)](coreaudio/audiodevicedestroyioprocid(_:_:).md)
- [AudioDeviceGetCurrentTime(_:_:)](coreaudio/audiodevicegetcurrenttime(_:_:).md)
- [AudioDeviceGetNearestStartTime(_:_:_:)](coreaudio/audiodevicegetneareststarttime(_:_:_:).md)
- [AudioDeviceStart(_:_:)](coreaudio/audiodevicestart(_:_:).md)
- [AudioDeviceStartAtTime(_:_:_:_:)](coreaudio/audiodevicestartattime(_:_:_:_:).md)
- [AudioDeviceStop(_:_:)](coreaudio/audiodevicestop(_:_:).md)
- [AudioDeviceTranslateTime(_:_:_:)](coreaudio/audiodevicetranslatetime(_:_:_:).md)
- [AudioGetCurrentHostTime()](coreaudio/audiogetcurrenthosttime().md)
- [AudioGetHostClockFrequency()](coreaudio/audiogethostclockfrequency().md)
- [AudioGetHostClockMinimumTimeDelta()](coreaudio/audiogethostclockminimumtimedelta().md)
- [AudioHardwareCreateAggregateDevice(_:_:)](coreaudio/audiohardwarecreateaggregatedevice(_:_:).md)
