mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 14:10:42 +00:00
Changed default cone outer angle to 0
This commit is contained in:
parent
0cedda1cd9
commit
a062fe3281
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue