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). Defaults to "HRTF".
OptionalrefReference distance for the falloff curve — volume is 1 at this
distance from the listener. Defaults to 1.
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).