AudioHardwareServiceSetPropertyData(_:_:_:_:_:_:)
Asks a HAL audio object to change the value of a specified property.
Declaration
func AudioHardwareServiceSetPropertyData(_ inObjectID: AudioObjectID, _ inAddress: UnsafePointer<AudioObjectPropertyAddress>!, _ inQualifierDataSize: UInt32, _ inQualifierData: UnsafeRawPointer!, _ inDataSize: UInt32, _ inData: UnsafeRawPointer!) -> OSStatusParameters
- inObjectID:
The HAL audio object to set a property value on.
- inAddress:
The property to set.
- inQualifierDataSize:
A
UInt32value indicating the size of the buffer pointed to by theinQualifierDataparameter. Not all properties require qualification; in such a case you set this parameter to0. - inQualifierData:
A buffer of data to be used in determining the value of the property being queried. Not all properties require qualification; in such a case you set this parameter to
NULL. - inDataSize:
A
UInt32value indicating the size of the buffer pointed to by theinDataparameter. - inData:
The buffer containing the data to be used as the new property value.
Return Value
A result code.
Discussion
The property should not be considered changed until the HAL has called your property listener callback. Many HAL audio object properties are changed asynchronously.
See Also
Related Documentation
Functions
AudioFileReadPackets(_:_:_:_:_:_:_:)AudioComponentGetIcon(_:_:)AudioComponentGetLastActiveTime(_:)AudioHardwareServiceAddPropertyListener(_:_:_:_:)AudioHardwareServiceGetPropertyData(_:_:_:_:_:_:)AudioHardwareServiceGetPropertyDataSize(_:_:_:_:_:)AudioHardwareServiceHasProperty(_:_:)AudioHardwareServiceIsPropertySettable(_:_:_:)AudioHardwareServiceRemovePropertyListener(_:_:_:_:)AudioOutputUnitGetHostIcon(_:_:)AudioOutputUnitPublish(_:_:_:_:)AudioSessionAddPropertyListener(_:_:_:)AudioSessionGetProperty(_:_:_:)AudioSessionGetPropertySize(_:_:)AudioSessionInitialize(_:_:_:_:)