From f94d462e01e6a4f7eb2f8793f27dd0ba6af628c0 Mon Sep 17 00:00:00 2001 From: Manuel Martin Date: Fri, 5 Nov 2021 12:43:36 +0100 Subject: [PATCH] Better audio defaults --- src/components/audio-params.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/audio-params.js b/src/components/audio-params.js index 7879ea8b47..07f05baee5 100644 --- a/src/components/audio-params.js +++ b/src/components/audio-params.js @@ -25,24 +25,24 @@ export const DistanceModelType = { export const AvatarAudioDefaults = Object.freeze({ audioType: AudioType.PannerNode, distanceModel: DistanceModelType.Inverse, - rolloffFactor: 2, - refDistance: 1, + rolloffFactor: 5, + refDistance: 5, maxDistance: 10000, coneInnerAngle: 180, coneOuterAngle: 360, - coneOuterGain: 0, + coneOuterGain: 0.9, gain: 1.0 }); export const MediaAudioDefaults = Object.freeze({ audioType: AudioType.PannerNode, distanceModel: DistanceModelType.Inverse, - rolloffFactor: 1, - refDistance: 1, + rolloffFactor: 5, + refDistance: 5, maxDistance: 10000, coneInnerAngle: 360, coneOuterAngle: 0, - coneOuterGain: 0, + coneOuterGain: 0.9, gain: 0.5 });