---
title: "AudioHardwareDestroyAggregateDevice(_:)"
framework: coreaudio
role: symbol
role_heading: Function
path: "coreaudio/audiohardwaredestroyaggregatedevice(_:)"
---

# AudioHardwareDestroyAggregateDevice(_:)

## Declaration

```swift
func AudioHardwareDestroyAggregateDevice(_ inDeviceID: AudioObjectID) -> OSStatus
```

## Parameters

- `inDeviceID`: The AudioObjectID of the AudioAggregateDevice to destroy.

## Return Value

Return Value An OSStatus indicating success or failure.

## Discussion

Discussion This routine destroys the given AudioAggregateDevice. The actual destruction of the device is asynchronous and may take place after the call to this routine has returned.

## See Also

### Functions

- [AudioConvertHostTimeToNanos(_:)](coreaudio/audioconverthosttimetonanos(_:).md)
- [AudioConvertNanosToHostTime(_:)](coreaudio/audioconvertnanostohosttime(_:).md)
- [AudioDeviceCreateIOProcID(_:_:_:_:)](coreaudio/audiodevicecreateioprocid(_:_:_:_:).md)
- [AudioDeviceCreateIOProcIDWithBlock(_:_:_:_:)](coreaudio/audiodevicecreateioprocidwithblock(_:_:_:_:).md)
- [AudioDeviceDestroyIOProcID(_:_:)](coreaudio/audiodevicedestroyioprocid(_:_:).md)
- [AudioDeviceGetCurrentTime(_:_:)](coreaudio/audiodevicegetcurrenttime(_:_:).md)
- [AudioDeviceGetNearestStartTime(_:_:_:)](coreaudio/audiodevicegetneareststarttime(_:_:_:).md)
- [AudioDeviceStart(_:_:)](coreaudio/audiodevicestart(_:_:).md)
- [AudioDeviceStartAtTime(_:_:_:_:)](coreaudio/audiodevicestartattime(_:_:_:_:).md)
- [AudioDeviceStop(_:_:)](coreaudio/audiodevicestop(_:_:).md)
- [AudioDeviceTranslateTime(_:_:_:)](coreaudio/audiodevicetranslatetime(_:_:_:).md)
- [AudioGetCurrentHostTime()](coreaudio/audiogetcurrenthosttime().md)
- [AudioGetHostClockFrequency()](coreaudio/audiogethostclockfrequency().md)
- [AudioGetHostClockMinimumTimeDelta()](coreaudio/audiogethostclockminimumtimedelta().md)
- [AudioHardwareCreateAggregateDevice(_:_:)](coreaudio/audiohardwarecreateaggregatedevice(_:_:).md)
