---
title: SetPreferredInputChannelLayout
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudiodevice/setpreferredinputchannellayout
---

# SetPreferredInputChannelLayout

Sets the input channel layout, using an array of audio channel label values.

## Declaration

```occ
kern_return_t SetPreferredInputChannelLayout(IOUserAudioChannelLabel *in_channel_labels, size_t in_num_channels);
```

## Parameters

- `in_channel_labels`: An array of doc://com.apple.audiodriverkit/documentation/AudioDriverKit/AudioDriverKit/IOUserAudioChannelLabel values.
- `in_num_channels`: The number of items in the in_channel_labels array.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurs. For a list of error codes, see Error Codes.

## See Also

### Working with Channel Layouts

- [SetPreferredChannelsForStereo](audiodriverkit/iouseraudiodevice/setpreferredchannelsforstereo.md)
- [GetPreferredChannelsForStereo](audiodriverkit/iouseraudiodevice/getpreferredchannelsforstereo.md)
- [SetPreferredOutputChannelLayout](audiodriverkit/iouseraudiodevice/setpreferredoutputchannellayout.md)
- [IOUserAudioChannelLabel](audiodriverkit/audiodriverkit/iouseraudiochannellabel.md)
