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

# setDefaultOutputDevice(_:)

Set the defaultOutputDevice property.

## Declaration

```swift
func setDefaultOutputDevice(_ device: AudioHardwareDevice) throws
```

## Parameters

- `device`: An AudioHardwareDevice to use as the default output audio device
