<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAudio",
  "identifier" : "/documentation/CoreAudio/AudioHardwareDevice/setPreferredInputChannelsForStereo(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Audio"
    ],
    "preciseIdentifier" : "s:9CoreAudio0B14HardwareDeviceC34setPreferredInputChannelsForStereoyySays6UInt32VGKF"
  },
  "title" : "setPreferredInputChannelsForStereo(_:)"
}
-->

# setPreferredInputChannelsForStereo(_:)

Set the preferredInputChannelsForStereo property.

```
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

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

---

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)