---
title: SetPanningChannels
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudiostereopancontrol/setpanningchannels
---

# SetPanningChannels

Sets the current stereo panning channels.

## Declaration

```occ
kern_return_t SetPanningChannels(IOUserAudioObjectPropertyElement in_left_channel, IOUserAudioObjectPropertyElement in_right_channel);
```

## Parameters

- `in_left_channel`: The doc://com.apple.audiodriverkit/documentation/AudioDriverKit/AudioDriverKit/IOUserAudioObjectPropertyElement for the left channel.
- `in_right_channel`: The doc://com.apple.audiodriverkit/documentation/AudioDriverKit/AudioDriverKit/IOUserAudioObjectPropertyElement for the right channel.

## Return Value

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

## Discussion

Discussion If successful, changing the panning channels sends a notification to the host to update the object state. This method synchronizes by using the work queue created by the object.

## See Also

### Accessing the Value

- [SetControlValue](audiodriverkit/iouseraudiostereopancontrol/setcontrolvalue.md)
- [GetControlValue](audiodriverkit/iouseraudiostereopancontrol/getcontrolvalue.md)
- [GetPanningChannels](audiodriverkit/iouseraudiostereopancontrol/getpanningchannels.md)
