AudioListener class
The interface represents the position and orientation of the
unique person listening to the audio scene, and is used in audio
spatialization. All PannerNodes spatialize in relation to the
stored in the BaseAudioContext.listener
attribute.
It is important to note that there is only one listener per
context and that it isn't an AudioNode.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- AudioListener()
-
factory
Properties
- forwardX → AudioParam
-
Available on AudioListener, provided by the PropsAudioListener extension
no setter - forwardY → AudioParam
-
Available on AudioListener, provided by the PropsAudioListener extension
no setter - forwardZ → AudioParam
-
Available on AudioListener, provided by the PropsAudioListener extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- positionX → AudioParam
-
Available on AudioListener, provided by the PropsAudioListener extension
no setter - positionY → AudioParam
-
Available on AudioListener, provided by the PropsAudioListener extension
no setter - positionZ → AudioParam
-
Available on AudioListener, provided by the PropsAudioListener extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- upX → AudioParam
-
Available on AudioListener, provided by the PropsAudioListener extension
no setter - upY → AudioParam
-
Available on AudioListener, provided by the PropsAudioListener extension
no setter - upZ → AudioParam
-
Available on AudioListener, provided by the PropsAudioListener extension
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setOrientation(
double x, double y, double z, double xUp, double yUp, double zUp) → void -
Available on AudioListener, provided by the PropsAudioListener extension
-
setPosition(
double x, double y, double z) → void -
Available on AudioListener, provided by the PropsAudioListener extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited