<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioSession/Orientation",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:@T@AVAudioSessionOrientation"
  },
  "title" : "AVAudioSession.Orientation"
}
-->

# AVAudioSession.Orientation

Constants that indicate the directions in which a data source can point, relative to the device’s natural orientation.

```
struct Orientation
```

## Topics

### Creating an Orientation

[`init(rawValue:)`](/documentation/AVFAudio/AVAudioSession/Orientation/init(rawValue:))

Creates a new instance with the raw value you specify.

### Getting Standard Orientations

[`AVAudioSessionOrientationTop`](/documentation/AVFAudio/AVAudioSession/Orientation/top)

A data source that points upward.

[`AVAudioSessionOrientationBottom`](/documentation/AVFAudio/AVAudioSession/Orientation/bottom)

A data source that points downward.

[`AVAudioSessionOrientationFront`](/documentation/AVFAudio/AVAudioSession/Orientation/front)

A data source that points outward from the front of the device, toward the user.

[`AVAudioSessionOrientationBack`](/documentation/AVFAudio/AVAudioSession/Orientation/back)

A data source that points outward from the back of the device, away from the user.

[`AVAudioSessionOrientationLeft`](/documentation/AVFAudio/AVAudioSession/Orientation/left)

A data source that points outward to the left of the device, away from the user.

[`AVAudioSessionOrientationRight`](/documentation/AVFAudio/AVAudioSession/Orientation/right)

A data source that points outward to the right of the device, away from the user.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)