/*==================================================================================== EVS Codec 3GPP TS26.443 Nov 13, 2018. Version 12.11.0 / 13.7.0 / 14.3.0 / 15.1.0 ====================================================================================*/ #include "options.h" #include "prot.h" namespace evs { /*-------------------------------------------------------------------* * deemph() * * Deemphasis: filtering through 1/(1-mu z^-1) *-------------------------------------------------------------------*/ void deemph( float *signal, /* i/o: signal */ const float mu, /* i : deemphasis factor */ const short L, /* i : vector size */ float *mem /* i/o: memory (y[-1]) */ ) { short i; signal[0] = signal[0] + mu * (*mem); for (i=1; i -1e-10) ) { *mem = 0; } return; } } // end of namespace