<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAudio",
  "identifier" : "/documentation/CoreAudio/AudioHardwareCreateAggregateDevice(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Audio"
    ],
    "preciseIdentifier" : "c:@F@AudioHardwareCreateAggregateDevice"
  },
  "title" : "AudioHardwareCreateAggregateDevice(_:_:)"
}
-->

# AudioHardwareCreateAggregateDevice(_:_:)

```
func AudioHardwareCreateAggregateDevice(_ inDescription: CFDictionary, _ outDeviceID: UnsafeMutablePointer<AudioObjectID>) -> OSStatus
```

## Parameters

`inDescription`

The CFDictionary that specifies how to build the AudioAggregateDevice. The
supported keys are described in the AudioAggregateDevice Constants section.

`outDeviceID`

The AudioObjectID of the newly created AudioAggregateDevice.

## Return Value

An OSStatus indicating success or failure.

## Discussion

\abstract This routine creates a new AudioAggregateDevice using the provided description.

---

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)