<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioToolbox",
  "identifier" : "/documentation/AudioToolbox/HeadTrackedSpatialAudio",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Audio Toolbox"
    ],
    "preciseIdentifier" : "s:12AudioToolbox018HeadTrackedSpatialA0V"
  },
  "title" : "HeadTrackedSpatialAudio"
}
-->

# HeadTrackedSpatialAudio

A spatial experience that takes user motion into account.

```
struct HeadTrackedSpatialAudio
```

## Overview

Sounds with a head-tracked experience come from a distinct location in
space as defined by their anchoring strategy.

```swift
// Configure an audio player with a scene-anchored spatial audio experience.
myPlayer.intendedSpatialExperience = .headTracked(.scene(identifier: mySceneID))
```

For multi-channel experiences, you might also consider specifying the
experience’s sound stage size if a system-specified size is not desirable.

```swift
// Configure an audio player with a front-anchored spatial audio experience
// and a large sound stage size.
myPlayer.intendedSpatialExperience = .headTracked(.front, soundStageSize: .large)
```

## Topics

### Instance Properties

[`var anchoringStrategy: SpatialAudioExperiences.AnchoringStrategy`](/documentation/AudioToolbox/HeadTrackedSpatialAudio/anchoringStrategy)

The experience’s anchoring strategy.

[`var soundStageSize: SpatialAudioExperiences.SoundStageSize`](/documentation/AudioToolbox/HeadTrackedSpatialAudio/soundStageSize)

The experience’s sound stage size.

## Relationships

### Conforms To

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

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

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

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

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

[`SpatialAudioExperience`](/documentation/AudioToolbox/SpatialAudioExperience)

[`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)