Contents

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!) -> OSStatus

Parameters

  • inObjectID:

    The HAL audio object to set a property value on.

  • inAddress:

    The property to set.

  • inQualifierDataSize:

    A UInt32 value indicating the size of the buffer pointed to by the inQualifierData parameter. Not all properties require qualification; in such a case you set this parameter to 0.

  • 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 UInt32 value indicating the size of the buffer pointed to by the inData parameter.

  • 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