PositionalAudio
Create a positional audio object. This uses the Web Audio API's PannerNode to create 3D spatial audio that changes based on the position of the listener and the audio source.
Attributes
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Get the distance model for this positional audio.
Get the distance model for this positional audio.
Attributes
Get the max distance for this positional audio.
Get the max distance for this positional audio.
Attributes
Get the reference distance for this positional audio.
Get the reference distance for this positional audio.
Attributes
Get the rolloff factor for this positional audio.
Get the rolloff factor for this positional audio.
Attributes
Set the directional cone for this positional audio.
Set the directional cone for this positional audio.
Attributes
Set the distance model for this positional audio.
Set the distance model for this positional audio.
Attributes
Set the max distance for this positional audio.
Set the max distance for this positional audio.
Attributes
Set the reference distance for this positional audio.
Set the reference distance for this positional audio.
Attributes
Set the rolloff factor for this positional audio.
Set the rolloff factor for this positional audio.
Attributes
Inherited methods
Connect this audio source to another audio node.
Disconnect this audio source from another audio node.
Get the filter for this audio source.
Get the filters for this audio source.
Get the loop property for this audio source.
Get the output for this audio source.
Get the volume for this audio source.
Attributes
- Inherited from:
- Object
Attributes
- Inherited from:
- Object
Pause the audio playback.
Start playing the audio.
Attributes
- Inherited from:
- Object
Set the audio buffer for this audio source.
Set the filter for this audio source.
Set the filters for this audio source.
Set the loop property for this audio source.
Set the playback rate for this audio source.
Set the volume for this audio source.
Attributes
- Inherited from:
- Object
Update the matrix world for this audio source.
Attributes
- Inherited from:
- Object
Concrete fields
The panner node for this positional audio.
The panner node for this positional audio.
Attributes
Inherited fields
The audio buffer for this audio source.
The audio context for this audio source.
The current time of the audio playback.
The gain node for this audio source.
Whether the audio has loaded.
Whether the audio is currently playing.
The playback rate for this audio.
The source node for this audio.
The type of source for this audio.