From a062fe3281b0b90604bb04534198401599312096 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Tue, 31 Jan 2023 16:18:27 +0000 Subject: [PATCH] Changed default cone outer angle to 0 --- src/sound/typedefs/SpatialSoundConfig.js | 2 +- src/sound/webaudio/WebAudioSound.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sound/typedefs/SpatialSoundConfig.js b/src/sound/typedefs/SpatialSoundConfig.js index 413e7f69f..1dfe4807e 100644 --- a/src/sound/typedefs/SpatialSoundConfig.js +++ b/src/sound/typedefs/SpatialSoundConfig.js @@ -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. */ diff --git a/src/sound/webaudio/WebAudioSound.js b/src/sound/webaudio/WebAudioSound.js index d93510715..52cbac918 100644 --- a/src/sound/webaudio/WebAudioSound.js +++ b/src/sound/webaudio/WebAudioSound.js @@ -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;