From 7ffc58daaa650bd5742656f1bafe038d9cc343f7 Mon Sep 17 00:00:00 2001 From: Geoffrey Merck Date: Wed, 29 Jan 2020 18:12:26 +0100 Subject: [PATCH] Well, forgot some basic maths .... --- ambed/cagc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ambed/cagc.cpp b/ambed/cagc.cpp index 71dd28d..d388442 100644 --- a/ambed/cagc.cpp +++ b/ambed/cagc.cpp @@ -44,8 +44,8 @@ CAGC::CAGC(float initialLeveldB) m_scale = (float)0xFFFF; m_bandwidth = 1e-2f; //TODO : Move to parameter ? - m_gMax = pow(10.0f, initialLeveldB + 10.0f/20.0f);//+- 10dB Margin, TODO Move margin to constant - m_gMin = pow(10.0f, initialLeveldB - 10.0f/20.0f); + m_gMax = pow(10.0f, (initialLeveldB + 10.0f)/20.0f);//+- 10dB Margin, TODO Move margin to constant + m_gMin = pow(10.0f, (initialLeveldB - 10.0f)/20.0f); m_alpha = m_bandwidth; m_y2_prime = 1.0f; }