---
title: "ExtAudioFileSetProperty(_:_:_:_:)"
framework: audiotoolbox
role: symbol
role_heading: Function
path: "audiotoolbox/extaudiofilesetproperty(_:_:_:_:)"
---

# ExtAudioFileSetProperty(_:_:_:_:)

Sets a property value for an extended audio file object.

## Declaration

```swift
func ExtAudioFileSetProperty(_ inExtAudioFile: ExtAudioFileRef, _ inPropertyID: ExtAudioFilePropertyID, _ inPropertyDataSize: UInt32, _ inPropertyData: UnsafeRawPointer) -> OSStatus
```

## Parameters

- `inExtAudioFile`: The extended audio file object to set a property value on.
- `inPropertyID`: The property whose value you want to set.
- `inPropertyDataSize`: The size of the property value, in bytes.
- `inPropertyData`: The value you want to apply to the specified property.

## Return Value

Return Value A result code.

## See Also

### Configuring Properties for Extended Audio File Objects

- [ExtAudioFileGetProperty(_:_:_:_:)](audiotoolbox/extaudiofilegetproperty(_:_:_:_:).md)
- [ExtAudioFileGetPropertyInfo(_:_:_:_:)](audiotoolbox/extaudiofilegetpropertyinfo(_:_:_:_:).md)
