From ea08fac32e83cde5328b531eb0d2c939c599c11a Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Sun, 14 Apr 2024 03:41:00 +0200 Subject: [PATCH] handle deprecation of rotator in volk 3.1.0 --- core/src/dsp/channel/frequency_xlator.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/dsp/channel/frequency_xlator.h b/core/src/dsp/channel/frequency_xlator.h index d3713317..bfb3b94a 100644 --- a/core/src/dsp/channel/frequency_xlator.h +++ b/core/src/dsp/channel/frequency_xlator.h @@ -41,7 +41,11 @@ namespace dsp::channel { } inline int process(int count, const complex_t* in, complex_t* out) { +#if VOLK_VERSION >= 030100 + volk_32fc_s32fc_x2_rotator2_32fc((lv_32fc_t*)out, (lv_32fc_t*)in, &phaseDelta, &phase, count); +#else volk_32fc_s32fc_x2_rotator_32fc((lv_32fc_t*)out, (lv_32fc_t*)in, phaseDelta, &phase, count); +#endif return count; }