AudioServicesSetProperty(_:_:_:_:_:)
Sets the value for a specified System Sound Services property.
Declaration
func AudioServicesSetProperty(_ inPropertyID: AudioServicesPropertyID, _ inSpecifierSize: UInt32, _ inSpecifier: UnsafeRawPointer?, _ inPropertyDataSize: UInt32, _ inPropertyData: UnsafeRawPointer) -> OSStatusParameters
- inPropertyID:
The property whose value you want to set.
- inSpecifierSize:
The size of the buffer pointed to by the
inSpecifierparameter. Pass0if no specifier buffer is required. - inSpecifier:
A pointer to a specifier buffer, if such a buffer is required by the property about which you want information. Pass
NULLif no specifier is required. - inPropertyDataSize:
The size, in bytes, of the buffer pointed to by the
inPropertyDataparameter. - inPropertyData:
The property value you want to set.
Return Value
A result code.
Discussion
System Sound Services properties are listed and described in System Sound Services Property Identifiers.