core: dsp: drop dsp_invertPhase function

Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
This commit is contained in:
Silvano Seva 2025-09-26 21:06:17 +02:00
parent 6db558e89c
commit c0d8984d09
2 changed files with 0 additions and 17 deletions

View File

@ -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

View File

@ -37,11 +37,3 @@ int16_t dsp_dcBlockFilter(struct dcBlock *dcb, int16_t sample)
return static_cast<int16_t>(dcb->prevOut);
}
void dsp_invertPhase(audio_sample_t *buffer, uint16_t length)
{
for(uint16_t i = 0; i < length; i++)
{
buffer[i] = -buffer[i];
}
}