Creates a spatial audio source from an existing buffer.
Unique identifier
ID of a previously loaded buffer
Spatial configuration
The created PositionalAudio or undefined
Disposes all resources and cleans up.
Gets the current listener state (position and orientation).
The listener's current state
Gets a spatial audio source by ID.
Source identifier
The PositionalAudio instance or undefined
Checks if a spatial audio source is playing.
Source identifier
True if playing
Loads and creates a spatial audio source.
Unique identifier for the audio source
URL to the audio file
Spatial configuration options
Promise resolving to the PositionalAudio instance
Pauses a spatial audio source.
Source identifier
Removes a spatial audio source.
Source identifier
Updates the position of a spatial audio source using a Vector3.
Source identifier
Position vector
Sets the volume of a spatial audio source.
Source identifier
Volume level (0.0 to 1.0)
Stops a spatial audio source.
Source identifier
Stops all spatial audio sources.
Manages 3D spatial audio using Three.js PositionalAudio.
Example