/*==================================================================================== EVS Codec 3GPP TS26.443 Jun 30, 2015. Version CR 26.443-0006 ====================================================================================*/ #include #include #include "prot.h" void tfaCalcEnv(const float* shb_speech, float* enr) { int i, j, k; for (i=0, k=0; i 0.70 && pitch_buf_sum > 4.0 * 110 && voicing_sum > 2.0 * 0.70) || (last_core == TCX_20_CORE && flatness > 0.50 && voicing_sum < 2.0 * 0.70)) { tfa_flag = 1; } /* energy lower limit */ if(m_a < m_a_bottom) { tfa_flag = 0; } return tfa_flag; }