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

# setPreferredInputChannelsForStereo(_:)

Set the preferredInputChannelsForStereo property.

## Declaration

```swift
func setPreferredInputChannelsForStereo(_ 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 input IO on the device.

## Discussion

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