OptionalconeThe angle, in degrees, of a cone inside of which there will be no volume reduction.
OptionalconeThe angle, in degrees, of a cone outside of which the volume will be reduced by a constant value, defined by the coneOuterGain property.
OptionalconeThe amount of volume reduction outside the cone defined by the coneOuterAngle attribute. Its default value is 0, meaning that no sound can be heard. A value between 0 and 1.
OptionaldistanceWhich algorithm to use to reduce the volume of the audio source as it moves away from the listener. Possible values are "linear", "inverse" and "exponential". The default value is "inverse".
OptionalfollowSet this Sound object to automatically track the x/y position of this object. Can be a Phaser Game Object, Vec2 or anything that exposes public x/y properties.
OptionalmaxThe maximum distance between the audio source and the listener, after which the volume is not reduced any further.
OptionalorientationThe horizontal position of the audio source's vector in a right-hand Cartesian coordinate system.
OptionalorientationThe vertical position of the audio source's vector in a right-hand Cartesian coordinate system.
OptionalorientationRepresents the longitudinal (back and forth) position of the audio source's vector in a right-hand Cartesian coordinate system.
OptionalpanningAn enumerated value determining which spatialization algorithm to use to position the audio in 3D space.
OptionalrefA double value representing the reference distance for reducing volume as the audio source moves further from the listener. For distances greater than this the volume will be reduced based on rolloffFactor and distanceModel.
OptionalrolloffA double value describing how quickly the volume is reduced as the source moves away from the listener. This value is used by all distance models.
OptionalxThe horizontal position of the audio in a right-hand Cartesian coordinate system.
OptionalyThe vertical position of the audio in a right-hand Cartesian coordinate system.
OptionalzRepresents the longitudinal (back and forth) position of the audio in a right-hand Cartesian coordinate system.
Config object containing settings for the source of the spatial sound.
See https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Web_audio_spatialization_basics