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

# setPreferredOutputChannelsForStereo(_:)

Set the preferredOutputChannelsForStereo property.

## Declaration

```swift
func setPreferredOutputChannelsForStereo(_ channels: [UInt32]) throws
```

## Parameters

- `channels`: An array of two UInt32s, the first for the left channel, the second for the right channel, that indicate the channel numbers to use for stereo output IO on the device.

## Discussion

Discussion There are no restrictions on the channel numbers that can be used.
