Changed default cone outer angle to 0

This commit is contained in:
Richard Davey 2023-01-31 16:18:27 +00:00
parent 0cedda1cd9
commit a062fe3281
2 changed files with 2 additions and 2 deletions

View file

@ -18,6 +18,6 @@
* @property {number} [maxDistance=10000] - Maximum distance between the source and the listener.
* @property {number} [rolloffFactor=1] - How quickly the volume is reduced as the panner moves away from the listener.
* @property {number} [coneInnerAngle=360] - Specifies where the sound emanates from.
* @property {number} [coneOuterAngle=360] - Specifies where the volume starts to drop away.
* @property {number} [coneOuterAngle=0] - Specifies where the volume starts to drop away.
* @property {number} [coneOuterGain=0] - Specifies the amount volume is reduced by.
*/

View file

@ -509,7 +509,7 @@ var WebAudioSound = new Class({
this.spatialNode.maxDistance = source.maxDistance || 10000;
this.spatialNode.rolloffFactor = source.rollOff || 1;
this.spatialNode.coneInnerAngle = source.innerCone || 360;
this.spatialNode.coneOuterAngle = source.outerCone || 360;
this.spatialNode.coneOuterAngle = source.outerCone || 0;
this.spatialNode.coneOuterGain = source.outerGain || 0;
this.spatialSource = source;