---
title: SetPreferredChannelsForStereo
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideodevice/setpreferredchannelsforstereo
---

# SetPreferredChannelsForStereo

Sets the channel indices for the preferred stereo pair

## Declaration

```occ
kern_return_t SetPreferredChannelsForStereo(uint32_t in_left_channel, uint32_t in_right_channel);
```

## Parameters

- `in_left_channel`: The channel index for the left channel.
- `in_right_channel`: The channel index for the right channel.

## See Also

### Working with channel layouts

- [GetPreferredChannelsForStereo](videodriverkit/iouservideodevice/getpreferredchannelsforstereo.md)
- [SetPreferredInputChannelLayout](videodriverkit/iouservideodevice/setpreferredinputchannellayout.md)
- [SetPreferredOutputChannelLayout](videodriverkit/iouservideodevice/setpreferredoutputchannellayout.md)
- [IOUserVideoChannelLabel](videodriverkit/videodriverkit/iouservideochannellabel.md)
