OptionalconeInner cone angle in degrees within which there is no volume
reduction. Defaults to 360 (omnidirectional).
OptionalconeOuter cone angle in degrees outside which the volume is reduced
to coneOuterGain. Defaults to 360.
OptionalconeLinear volume multiplier (0..1) applied outside
coneOuterAngle. Defaults to 0 (silent outside the cone).
OptionaldistanceDistance-attenuation algorithm — "inverse" (default), "linear",
or "exponential". Matches the WebAudio PannerNode.distanceModel
union.
OptionalmaxDistance at which volume reduction stops (used by the "linear"
model; clamps the falloff curve for the other one). Defaults to
10000.
OptionalpanningSpatialization algorithm, "equalpower" (cheap, stereo-only) or
"HRTF" (head-related, full 3D).
A voice placed through follow / at starts from "equalpower", which
is what a 2D mix wants; a bare audio.position() keeps the WebAudio
default of "HRTF". See audio.setSpatialDefaults.
OptionalrefReference distance for the falloff curve: volume is 1 at this distance
from the listener.
A voice placed through follow / at starts from 240, which is a
pixel distance a few tiles wide; a bare audio.position() keeps the
WebAudio default of 1, which is one METRE and leaves a sound given
pixel coordinates near silent. See audio.setSpatialDefaults.
OptionalrolloffSteepness of the falloff curve for the "inverse" model.
Defaults to 1.
Spatial-audio cone + distance attributes passed to
audio.panner. Mirrors the WebAudioPannerNodeconfiguration so positional sound effects can be set up declaratively (see MDN — creating a panner node for an end-to-end conceptual overview).