/*==================================================================================== EVS Codec 3GPP TS26.443 Jun 30, 2015. Version CR 26.443-0006 ====================================================================================*/ #include "options.h" #include "prot.h" /*-------------------------------------------------------------------* * 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; }