audio clip name - case sensitive
Optionalattributes: { the panner attributes to set
A parameter for directional audio sources, this is an angle, in degrees, inside of which there will be no volume reduction.
A parameter for directional audio sources, this is an angle, in degrees, outside of which the volume will be reduced to a constant value of coneOuterGain.
A parameter for directional audio sources, this is the gain outside of the coneOuterAngle. It is a linear value in the range [0, 1].
Determines algorithm used to reduce volume as audio moves away from listener. Can be linear, inverse or exponential. @param {string} [attributes.maxDistance=10000] - The maximum distance between source and listener, after which the volume will not be reduced any further. @param {string} [attributes.refDistance=1] - A reference distance for reducing volume as source moves further from the listener. This is simply a variable of the distance model and has a different effect depending on which model is used and the scale of your coordinates. Generally, volume will be equal to 1 at this distance. @param {string} [attributes.rolloffFactor=1] - How quickly the volume reduces as source moves from listener. This is simply a variable of the distance model and can be in the range of [0, 1]withlinearand[0, ∞]withinverseandexponential. @param {string} [attributes.panningModel="HRTF"] - Determines which spatialization algorithm is used to position audio. Can be HRTForequalpower`.
Optionalid: numberthe sound instance ID. If none is passed, all sounds in group will be changed.
current panner attributes.
get or set the panner node's attributes for a sound or group of sounds. See https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Web_audio_spatialization_basics#creating_a_panner_node