---
title: "AudioServicesSetProperty(_:_:_:_:_:)"
framework: audiotoolbox
role: symbol
role_heading: Function
path: "audiotoolbox/audioservicessetproperty(_:_:_:_:_:)"
---

# AudioServicesSetProperty(_:_:_:_:_:)

Sets the value for a specified System Sound Services property.

## Declaration

```swift
func AudioServicesSetProperty(_ inPropertyID: AudioServicesPropertyID, _ inSpecifierSize: UInt32, _ inSpecifier: UnsafeRawPointer?, _ inPropertyDataSize: UInt32, _ inPropertyData: UnsafeRawPointer) -> OSStatus
```

## Parameters

- `inPropertyID`: The property whose value you want to set.
- `inSpecifierSize`: The size of the buffer pointed to by the inSpecifier parameter. Pass 0 if 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 NULL if no specifier is required.
- `inPropertyDataSize`: The size, in bytes, of the buffer pointed to by the inPropertyData parameter.
- `inPropertyData`: The property value you want to set.

## Return Value

Return Value A result code.

## Discussion

Discussion System Sound Services properties are listed and described in System Sound Services Property Identifiers.

## See Also

### Managing System Sound Services Properties

- [AudioServicesGetPropertyInfo(_:_:_:_:_:)](audiotoolbox/audioservicesgetpropertyinfo(_:_:_:_:_:).md)
- [AudioServicesGetProperty(_:_:_:_:_:)](audiotoolbox/audioservicesgetproperty(_:_:_:_:_:).md)
- [AudioServicesPropertyID](audiotoolbox/audioservicespropertyid.md)
- [System Sound Services Property Identifiers](audiotoolbox/1405268-system-sound-services-property-i.md)
- [Audio Hardware Services Properties](audiotoolbox/1405208-audio-hardware-services-properti.md)
