From 97187b790feb4fe9809f21ad8989a18a03ca96fb Mon Sep 17 00:00:00 2001 From: Ivan Date: Thu, 7 Sep 2023 17:27:34 +0300 Subject: [PATCH] Fix typo in fastAmplitude() --- core/src/dsp/types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/dsp/types.h b/core/src/dsp/types.h index 3642e7f9..e552829a 100644 --- a/core/src/dsp/types.h +++ b/core/src/dsp/types.h @@ -82,7 +82,7 @@ namespace dsp { inline float fastAmplitude() { float re_abs = fabsf(re); - float im_abs = fabsf(re); + float im_abs = fabsf(im); if (re_abs > im_abs) { return re_abs + 0.4f * im_abs; } return im_abs + 0.4f * re_abs; } @@ -125,4 +125,4 @@ namespace dsp { float l; float r; }; -} \ No newline at end of file +}