---
title: HeadTrackedSpatialAudio
framework: audiotoolbox
role: symbol
role_heading: Structure
path: audiotoolbox/headtrackedspatialaudio
---

# HeadTrackedSpatialAudio

A spatial experience that takes user motion into account.

## Declaration

```swift
struct HeadTrackedSpatialAudio
```

## Mentioned in

Anchoring sound to a window or volume

## Overview

Overview Sounds with a head-tracked experience come from a distinct location in space as defined by their anchoring strategy. // 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. // 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

- [anchoringStrategy](audiotoolbox/headtrackedspatialaudio/anchoringstrategy.md)
- [soundStageSize](audiotoolbox/headtrackedspatialaudio/soundstagesize.md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SpatialAudioExperience](audiotoolbox/spatialaudioexperience.md)
