---
title: "setComposition(_:)"
framework: Core Audio
role: symbol
role_heading: Instance Method
platforms: [macOS 15.0+]
path: "coreaudio/audiohardwareaggregatedevice/setcomposition(_:)"
---

# setComposition(_:)

Set the composition property.

## Declaration

```swift
func setComposition(_ composition: [String : Any]) throws
```

## Parameters

- `composition`: A Dictionary that describes the composition of the aggregate device.
