The AudioListener interface represents the position and orientation
the unique person listening to the audio scene, and is used in
spatialization. All web.audio.PannerNode
s spatialize in relation
the AudioListener stored in the BaseAudioContext.listener
attribute.
The AudioListener interface represents the position and orientation the unique person listening to the audio scene, and is used in spatialization. All `web.audio.PannerNode`s spatialize in relation the AudioListener stored in the `BaseAudioContext.listener` attribute.
(doppler-factor this)
Property.
[Deprecated]
The deprecated dopplerFactor property of the web.audio.AudioListener
is a double value representing the amount of pitch shift to use
rendering a doppler effect.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.dopplerFactor = 1;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/dopplerFactor
Property. [Deprecated] The deprecated dopplerFactor property of the `web.audio.AudioListener` is a double value representing the amount of pitch shift to use rendering a doppler effect. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.dopplerFactor = 1;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/dopplerFactor`
(forward-x this)
Property.
[Read Only]
The forwardX read-only property of the web.audio.AudioListener
is an web.audio.AudioParam
representing the x value of the
vector defining the forward direction the listener is pointing
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.forwardX.value = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/forwardX
Property. [Read Only] The forwardX read-only property of the `web.audio.AudioListener` is an `web.audio.AudioParam` representing the x value of the vector defining the forward direction the listener is pointing `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.forwardX.value = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/forwardX`
(forward-y this)
Property.
[Read Only]
The forwardY read-only property of the web.audio.AudioListener
is an web.audio.AudioParam
representing the y value of the
vector defining the forward direction the listener is pointing
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.forwardY.value = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/forwardY
Property. [Read Only] The forwardY read-only property of the `web.audio.AudioListener` is an `web.audio.AudioParam` representing the y value of the vector defining the forward direction the listener is pointing `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.forwardY.value = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/forwardY`
(forward-z this)
Property.
[Read Only]
The forwardZ read-only property of the web.audio.AudioListener
is an web.audio.AudioParam
representing the z value of the
vector defining the forward direction the listener is pointing
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.forwardZ.value = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/forwardZ
Property. [Read Only] The forwardZ read-only property of the `web.audio.AudioListener` is an `web.audio.AudioParam` representing the z value of the vector defining the forward direction the listener is pointing `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.forwardZ.value = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/forwardZ`
(position-x this)
Property.
[Read Only]
The positionX read-only property of the web.audio.AudioListener
is an web.audio.AudioParam
representing the x position of the
in 3D cartesian space.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.positionX.value = 1;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/positionX
Property. [Read Only] The positionX read-only property of the `web.audio.AudioListener` is an `web.audio.AudioParam` representing the x position of the in 3D cartesian space. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.positionX.value = 1;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/positionX`
(position-y this)
Property.
[Read Only]
The positionY read-only property of the web.audio.AudioListener
is an web.audio.AudioParam
representing the y position of the
in 3D cartesian space.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.positionY.value = 1;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/positionY
Property. [Read Only] The positionY read-only property of the `web.audio.AudioListener` is an `web.audio.AudioParam` representing the y position of the in 3D cartesian space. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.positionY.value = 1;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/positionY`
(position-z this)
Property.
[Read Only]
The positionZ read-only property of the web.audio.AudioListener
is an web.audio.AudioParam
representing the z position of the
in 3D cartesian space.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.positionZ.value = 1;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/positionZ
Property. [Read Only] The positionZ read-only property of the `web.audio.AudioListener` is an `web.audio.AudioParam` representing the z position of the in 3D cartesian space. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.positionZ.value = 1;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/positionZ`
(set-doppler-factor! this val)
Property.
[Deprecated]
The deprecated dopplerFactor property of the web.audio.AudioListener
is a double value representing the amount of pitch shift to use
rendering a doppler effect.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.dopplerFactor = 1;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/dopplerFactor
Property. [Deprecated] The deprecated dopplerFactor property of the `web.audio.AudioListener` is a double value representing the amount of pitch shift to use rendering a doppler effect. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.dopplerFactor = 1;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/dopplerFactor`
(set-orientation this & args)
Method.
[Deprecated]
Void.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.setOrientation(0,0,-1,0,1,0);
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setOrientation
Method. [Deprecated] Void. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.setOrientation(0,0,-1,0,1,0);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setOrientation`
(set-position this & args)
Method.
Void.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.setPosition(1,1,1);
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setPosition
Method. Void. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.setPosition(1,1,1);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setPosition`
(set-speed-of-sound! this val)
Property.
[Deprecated]
The speedOfSound property of the web.audio.AudioListener
interface
a double value representing the speed of sound, in meters per
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.speedOfSound = 343.3;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/speedOfSound
Property. [Deprecated] The speedOfSound property of the `web.audio.AudioListener` interface a double value representing the speed of sound, in meters per `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.speedOfSound = 343.3;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/speedOfSound`
(speed-of-sound this)
Property.
[Deprecated]
The speedOfSound property of the web.audio.AudioListener
interface
a double value representing the speed of sound, in meters per
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.speedOfSound = 343.3;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/speedOfSound
Property. [Deprecated] The speedOfSound property of the `web.audio.AudioListener` interface a double value representing the speed of sound, in meters per `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.speedOfSound = 343.3;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/speedOfSound`
(up-x this)
Property.
[Read Only]
The upX read-only property of the web.audio.AudioListener
interface
an web.audio.AudioParam
representing the x value of the direction
defining the up direction the listener is pointing in.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.upX.value = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/upX
Property. [Read Only] The upX read-only property of the `web.audio.AudioListener` interface an `web.audio.AudioParam` representing the x value of the direction defining the up direction the listener is pointing in. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.upX.value = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/upX`
(up-y this)
Property.
[Read Only]
The upY read-only property of the web.audio.AudioListener
interface
an web.audio.AudioParam
representing the y value of the direction
defining the up direction the listener is pointing in.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.upY.value = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/upY
Property. [Read Only] The upY read-only property of the `web.audio.AudioListener` interface an `web.audio.AudioParam` representing the y value of the direction defining the up direction the listener is pointing in. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.upY.value = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/upY`
(up-z this)
Property.
[Read Only]
The upZ read-only property of the web.audio.AudioListener
interface
an web.audio.AudioParam
representing the z value of the direction
defining the up direction the listener is pointing in.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.upZ.value = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/upZ
Property. [Read Only] The upZ read-only property of the `web.audio.AudioListener` interface an `web.audio.AudioParam` representing the z value of the direction defining the up direction the listener is pointing in. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.upZ.value = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/upZ`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close