core: dsp: drop dsp_invertPhase function
Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
This commit is contained in:
parent
6db558e89c
commit
c0d8984d09
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue