---
title: channelAssignments
framework: avfaudio
role: symbol
role_heading: Instance Property
path: avfaudio/avaudioplayer/channelassignments
---

# channelAssignments

An array of channel descriptions for the audio player.

## Declaration

```swift
var channelAssignments: [AVAudioSessionChannelDescription]? { get set }
```

## Mentioned in

Routing audio to specific devices in multidevice sessions

## Discussion

Discussion The default value for this property is nil. When the value is non-nil, this array must have the same number of channels the numberOfChannels property returns. You can use this property to assign output to play to different channels.

## See Also

### Managing audio channels

- [numberOfChannels](avfaudio/avaudioplayer/numberofchannels.md)
