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

# AVAudioSession.Location

Constants that describe the location of the data source on device.

```
struct Location
```

## Topics

### Creating a Location

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

Creates a new instance with the raw value you specify.

### Getting Standard Locations

[`AVAudioSessionLocationLower`](/documentation/AVFAudio/AVAudioSession/Location/lower)

A value that indicates that the data source is located near the bottom end of the device.

[`AVAudioSessionLocationUpper`](/documentation/AVFAudio/AVAudioSession/Location/upper)

A value that indicates that the data source is located near the top end of the device.

### Deprecated

[Deprecated Symbols](/documentation/AVFAudio/location-deprecated-symbols)

Review unsupported symbols and their replacements.

## Relationships

### Conforms To

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

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

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

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

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

---

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)