AudioListener

THREE.AudioListener
class AudioListener extends Object

The AudioListener represents a virtual listener of the audio sources in a scene. It is similar to a camera in the visual scene - it has a position and orientation in 3D space, and defines from where the audio is heard.

Attributes

Graph
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def getFilter(): Any

Get the filter for the listener.

Get the filter for the listener.

Attributes

def getInput(): Any

Get the input for the listener.

Get the input for the listener.

Attributes

def getMasterVolume(): Double

Get the master volume for the listener.

Get the master volume for the listener.

Attributes

def removeFilter(): Unit

Remove the filter from the listener.

Remove the filter from the listener.

Attributes

def setFilter(value: Any): Unit

Set the filter for the listener.

Set the filter for the listener.

Attributes

def setMasterVolume(value: Double): Unit

Set the master volume for the listener.

Set the master volume for the listener.

Attributes

def setOrientation(x: Double, y: Double, z: Double, xUp: Double, yUp: Double, zUp: Double): Unit

Set the orientation of the listener in 3D space.

Set the orientation of the listener in 3D space.

Attributes

def setPosition(x: Double, y: Double, z: Double): Unit

Set the position of the listener in 3D space.

Set the position of the listener in 3D space.

Attributes

def updateMatrixWorld(force: Boolean): Unit

Update the position and orientation of the listener based on a matrix.

Update the position and orientation of the listener based on a matrix.

Attributes

Inherited methods

def hasOwnProperty(v: String): Boolean

Attributes

Inherited from:
Object
def isPrototypeOf(v: Object): Boolean

Attributes

Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean

Attributes

Inherited from:
Object
def toLocaleString(): String

Attributes

Inherited from:
Object
def valueOf(): Any

Attributes

Inherited from:
Object

Concrete fields

var context: Any

The audio context to use for the listener.

The audio context to use for the listener.

Attributes

var filter: Any

The filter node for the listener.

The filter node for the listener.

Attributes

var gain: Any

The gain node for the listener.

The gain node for the listener.

Attributes

var timeDelta: Double

Time delta for the listener.

Time delta for the listener.

Attributes