<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioToolbox",
  "identifier" : "/documentation/AudioToolbox/AudioServicesGetProperty(_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Audio Toolbox"
    ],
    "preciseIdentifier" : "c:@F@AudioServicesGetProperty"
  },
  "title" : "AudioServicesGetProperty(_:_:_:_:_:)"
}
-->

# AudioServicesGetProperty(_:_:_:_:_:)

Gets a specified System Sound Services property value.

```
func AudioServicesGetProperty(_ inPropertyID: AudioServicesPropertyID, _ inSpecifierSize: UInt32, _ inSpecifier: UnsafeRawPointer?, _ ioPropertyDataSize: UnsafeMutablePointer<UInt32>, _ outPropertyData: UnsafeMutableRawPointer?) -> OSStatus
```

## Parameters

`inPropertyID`

The property whose value you want.

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

`ioPropertyDataSize`

On input, the size, in bytes, of the buffer pointed to by the `outPropertyData` parameter. Call the [`AudioServicesGetPropertyInfo(_:_:_:_:_:)`](/documentation/AudioToolbox/AudioServicesGetPropertyInfo(_:_:_:_:_:)) function to find out the size required for this buffer. On output, the number of bytes written to the buffer.

`outPropertyData`

On output, the property value.

## Return Value

A result code.

## Discussion

System Sound Services properties are listed and described in [System Sound Services Property Identifiers](/documentation/AudioToolbox/1405268-system-sound-services-property-i).

### Special Considerations

Some Core Audio property values are C types and others are Core Foundation objects.

If you call this function to retrieve a value that is a Core Foundation object, then this function—despite the use of “Get” in its name—duplicates the object. You are responsible for releasing the object, as described in [The Create Rule](https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html#//apple_ref/doc/uid/20001148-103029) in [Memory Management Programming Guide for Core Foundation](https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/CFMemoryMgmt.html#//apple_ref/doc/uid/10000127i).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)