From d87bf878ebaa0810b8fc72db11f887a37352860f Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 4 Oct 2023 02:18:20 -0400 Subject: [PATCH] Fix dsp::dbToAmplitude() for simd:: types. --- include/dsp/common.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dsp/common.hpp b/include/dsp/common.hpp index e696f076..f2b3a621 100644 --- a/include/dsp/common.hpp +++ b/include/dsp/common.hpp @@ -47,7 +47,7 @@ T amplitudeToDb(T amp) { template T dbToAmplitude(T db) { - return std::pow(10, db / 20); + return simd::pow(10, db / 20); } // Functions for parameter scaling