---
title: channelNumber
framework: avfaudio
role: symbol
role_heading: Instance Property
path: avfaudio/avaudiosessionchanneldescription/channelnumber
---

# channelNumber

The index of this channel in its owning port’s array of channels.

## Declaration

```swift
var channelNumber: Int { get }
```

## Discussion

Discussion You can use the value in this property to identify the channel during audio routing. However, the value of this property isn’t guaranteed to persist across route changes.

## See Also

### Getting the Channel Information

- [channelName](avfaudio/avaudiosessionchanneldescription/channelname.md)
- [owningPortUID](avfaudio/avaudiosessionchanneldescription/owningportuid.md)
- [channelLabel](avfaudio/avaudiosessionchanneldescription/channellabel.md)
