Home | History | Annotate | Download | only in src

Lines Matching full:gain

179     FIXP_DBL     smoothGain[2];              /*!< gain smoothing states */
182 FIXP_DBL limGain[2]; /*!< limiter gain */
788 FIXP_DBL gain, alpha, lvl2smthlvl;
790 /* calc static gain */
793 gain = drcComp->maxBoost[i];
797 gain = fMult((level - drcComp->boostThr[i]),drcComp->boostFac[i]);
801 gain = FL2FXCONST_DBL(0.f);
805 gain
809 gain = fMult((level - drcComp->cutThr[i]), drcComp->cutFac[i]) - drcComp->maxEarlyCut[i];
813 gain = -drcComp->maxCut[i];
818 if (gain < drcComp->smoothGain[i]) {
841 /* smooth gain & level */
842 if ((gain < drcComp->smoothGain[i]) || (drcComp->holdCnt[i] == 0)) { /* hold gain unless we have an attack or hold period is over */
850 /* drcComp->smoothGain[i] = (1-alpha) * drcComp->smoothGain[i] + alpha * gain; */
852 accu += fMult(alpha,gain);
860 if (gain < drcComp->smoothGain[i]) {
998 /* limiter gain */