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]; - } -}