From 61bbb4a3741109314e42de74fd8ea3cf0e2b5d22 Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Tue, 24 Aug 2021 18:59:32 +0200 Subject: [PATCH] work towards ubuntu 18.04 compatibility --- core/src/dsp/math.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/dsp/math.h b/core/src/dsp/math.h index 0dda798..8c71249 100644 --- a/core/src/dsp/math.h +++ b/core/src/dsp/math.h @@ -64,7 +64,8 @@ namespace dsp { } if constexpr (std::is_same_v || std::is_same_v) { - volk_32fc_x2_add_32fc((lv_32fc_t*)out.writeBuf, (lv_32fc_t*)_a->readBuf, (lv_32fc_t*)_b->readBuf, a_count); + // TODO: Switch this out for volk_32fc_x2_add_32fc with a check for old volk versions that don't have it (eg. Ubuntu 18.04 that has volk 1.3) + volk_32f_x2_add_32f((float*)out.writeBuf, (float*)_a->readBuf, (float*)_b->readBuf, a_count * 2); } else { volk_32f_x2_add_32f(out.writeBuf, _a->readBuf, _b->readBuf, a_count);