---
title: PHASEListener
framework: phase
role: symbol
role_heading: Class
path: phase/phaselistener
---

# PHASEListener

A central point of reference that defines the location within the scene that’s most audible to the user.

## Declaration

```swift
class PHASEListener
```

## Mentioned in

Playing sound from a location in a 3D scene

## Overview

Overview PHASE requires an instance of this class to play ambient or spatial audio. To output sound through an ambient mixer or spatial mixer, the app adds an instance of this class to a sound event by using PHASEMixerParameters. For an example that demonstrates listeners, see Playing sound from a location in a 3D scene.

## Topics

### Creating a Listener

- [init(engine:)](phase/phaselistener/init(engine:).md)

### Adjusting Loudness

- [gain](phase/phaselistener/gain.md)

### Instance Properties

- [automaticHeadTrackingFlags](phase/phaselistener/automaticheadtrackingflags.md)

## Relationships

### Inherits From

- [PHASEObject](phase/phaseobject.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Soundscape Creation

- [PHASESource](phase/phasesource.md)
- [PHASEOccluder](phase/phaseoccluder.md)
- [PHASEObject](phase/phaseobject.md)
- [PHASEShape](phase/phaseshape.md)
- [PHASEShape.Element](phase/phaseshape/element.md)
- [PHASEMaterial](phase/phasematerial.md)
- [PHASEMaterialPreset](phase/phasematerialpreset.md)
- [PHASEMixerParameters](phase/phasemixerparameters.md)
