From 83e1efd2f0219fbec408f1fb9cebc1a32a43df43 Mon Sep 17 00:00:00 2001 From: Ken Cooke Date: Thu, 3 Jan 2019 15:12:42 -0800 Subject: [PATCH] Improved reference distance = 2m --- libraries/audio/src/AudioHRTF.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/audio/src/AudioHRTF.h b/libraries/audio/src/AudioHRTF.h index de104db226..7d23f4825a 100644 --- a/libraries/audio/src/AudioHRTF.h +++ b/libraries/audio/src/AudioHRTF.h @@ -31,8 +31,8 @@ static const float HRTF_NEARFIELD_MIN = 0.125f; // distance in meters static const float HRTF_HEAD_RADIUS = 0.0875f; // average human head in meters // Distance attenuation -static const float ATTN_DISTANCE_REF = 1.0f; // distance where attn is 0dB -static const float ATTN_GAIN_MAX = 8.0f; // max gain allowed by distance attn (+18dB) +static const float ATTN_DISTANCE_REF = 2.0f; // distance where attn is 0dB +static const float ATTN_GAIN_MAX = 16.0f; // max gain allowed by distance attn (+24dB) class AudioHRTF {