From 9b1ec79d61cb0351e026ce1010161a3d502c01a7 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Fri, 17 Jun 2022 19:14:55 +0200 Subject: [PATCH] more stuff idk at this point$ --- core/src/dsp/demod/am.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/dsp/demod/am.h b/core/src/dsp/demod/am.h index e385cf93..cee59603 100644 --- a/core/src/dsp/demod/am.h +++ b/core/src/dsp/demod/am.h @@ -64,7 +64,10 @@ namespace dsp::demod { audioAgc.process(count, out, out); } else { - volk_32f_s32f_add_32f(out, out, -1.0f, count); + // TODO: Find a volk function for it + for (int i = 0; i < count; i++) { + out[i] -= 1.0; + } } return count;