File: AudioListener.md | Updated: 11/15/2025
The class represents a virtual listener of the all positional and non-positional audio effects in the scene. A three.js application usually creates a single listener. It is a mandatory constructor parameter for audios entities like Audio and PositionalAudio.
In most cases, the listener object is a child of the camera. So the 3D transformation of the camera represents the 3D transformation of the listener.
Constructs a new audio listener.
The native audio context.
An optional filter.
Defined via AudioListener#setFilter.
Default is null.
The gain node used for volume control.
Time delta values required for linearRampToValueAtTime() usage.
Default is 0.
Returns the current set filter.
Returns: The filter.
Returns the listener's input node.
This method is used by other audio nodes to connect to this listener.
Returns: The input node.
Returns the applications master volume.
Returns: The master volume.
Removes the current filter from this listener.
Returns: A reference to this listener.
Sets the given filter to this listener.
value | The filter to set.
---|---
Returns: A reference to this listener.
Sets the applications master volume. This volume setting affects all audio nodes in the scene.
value | The master volume to set.
---|---
Returns: A reference to this listener.