← API
Interface
SpatialOptions
Members
- distanceModel Distance-attenuation curve. Default
- maxDistance Distance beyond which
- occlusion Occlusion amount (0..1). Drives an internal low-pass filter that sweeps cutoff from 22050 Hz (transparent) down to ~500 Hz (heavily muffled), plus a small gain dip — the standard "behind a wall" effect. Independent of distance attenuation; combine via a
- pan [-1, 1] stereo pan (2D). Mutually exclusive with
- position [x, y, z] world-space position (3D). Mutually exclusive with
- refDistance Distance below which the source is at full volume. Default 1. 3D only; ignored when
- rolloffFactor How aggressively distance attenuates the sound. 1 is the natural rolloff for the chosen