---
title: orientation
framework: avfaudio
role: symbol
role_heading: Instance Property
path: avfaudio/avaudiosessiondatasourcedescription/orientation
---

# orientation

The orientation of the data source relative to the device’s natural orientation.

## Declaration

```swift
var orientation: AVAudioSession.Orientation? { get }
```

## Discussion

Discussion This property returns nil if the data source’s orientation isn’t known.

## See Also

### Retrieving the Data Source Orientation

- [AVAudioSession.Orientation](avfaudio/avaudiosession/orientation.md)
