From c0d8984d09300101992e82f87173185da4c0244f Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Fri, 26 Sep 2025 21:06:17 +0200 Subject: [PATCH] core: dsp: drop dsp_invertPhase function Signed-off-by: Silvano Seva --- openrtx/include/core/dsp.h | 9 --------- openrtx/src/core/dsp.cpp | 8 -------- 2 files changed, 17 deletions(-) diff --git a/openrtx/include/core/dsp.h b/openrtx/include/core/dsp.h index fda797b4..6ec16716 100644 --- a/openrtx/include/core/dsp.h +++ b/openrtx/include/core/dsp.h @@ -73,15 +73,6 @@ static inline void dsp_removeDcOffset(struct dcBlock *dcb, int16_t *buffer, buffer[i] = dsp_dcBlockFilter(dcb, buffer[i]); } -/* - * Inverts the phase of the audio buffer passed as paramenter. - * The buffer will be processed in place to save memory. - * - * @param buffer: the buffer to be used as both source and destination. - * @param length: the length of the input buffer. - */ -void dsp_invertPhase(audio_sample_t *buffer, uint16_t length); - #ifdef __cplusplus } #endif // __cplusplus diff --git a/openrtx/src/core/dsp.cpp b/openrtx/src/core/dsp.cpp index 5f36684c..ec1ba09f 100644 --- a/openrtx/src/core/dsp.cpp +++ b/openrtx/src/core/dsp.cpp @@ -37,11 +37,3 @@ int16_t dsp_dcBlockFilter(struct dcBlock *dcb, int16_t sample) return static_cast(dcb->prevOut); } - -void dsp_invertPhase(audio_sample_t *buffer, uint16_t length) -{ - for(uint16_t i = 0; i < length; i++) - { - buffer[i] = -buffer[i]; - } -}