Lines Matching refs:average
454 // Use 75% of the average value of the soundcard buffer
641 if ((aecpc->aec->erl.himean > offsetLevel) && (aecpc->aec->erl.average > offsetLevel)) {
642 // Use a mix between regular average and upper part average
643 dtmp = upweight * aecpc->aec->erl.himean + (1 - upweight) * aecpc->aec->erl.average;
644 metrics->erl.average = (short) dtmp;
647 metrics->erl.average = offsetLevel;
662 if ((aecpc->aec->erle.himean > offsetLevel) && (aecpc->aec->erle.average > offsetLevel)) {
663 // Use a mix between regular average and upper part average
664 dtmp = upweight * aecpc->aec->erle.himean + (1 - upweight) * aecpc->aec->erle.average;
665 metrics->erle.average = (short) dtmp;
668 metrics->erle.average = offsetLevel;
680 if ((metrics->erl.average > offsetLevel) && (metrics->erle.average > offsetLevel)) {
681 stmp = metrics->erl.average + metrics->erle.average;
686 metrics->rerl.average = stmp;
696 if ((aecpc->aec->aNlp.himean > offsetLevel) && (aecpc->aec->aNlp.average > offsetLevel)) {
697 // Use a mix between regular average and upper part average
698 dtmp = upweight * aecpc->aec->aNlp.himean + (1 - upweight) * aecpc->aec->aNlp.average;
699 metrics->aNlp.average = (short) dtmp;
702 metrics->aNlp.average = offsetLevel;