Searched refs:target_gain (Results 1 – 1 of 1) sorted by relevance
569 float target_gain; in speex_compute_agc() local591 …target_gain = AMP_SCALE*st->agc_level*pow(st->loudness/(1e-4+st->loudness_accum), -1.0f/LOUDNESS_E… in speex_compute_agc()593 if ((Pframe>.5 && st->nb_adapt > 20) || target_gain < st->agc_gain) in speex_compute_agc()595 if (target_gain > st->max_increase_step*st->agc_gain) in speex_compute_agc()596 target_gain = st->max_increase_step*st->agc_gain; in speex_compute_agc()597 if (target_gain < st->max_decrease_step*st->agc_gain && loudness < 10*st->prev_loudness) in speex_compute_agc()598 target_gain = st->max_decrease_step*st->agc_gain; in speex_compute_agc()599 if (target_gain > st->max_gain) in speex_compute_agc()600 target_gain = st->max_gain; in speex_compute_agc()601 if (target_gain > st->init_max) in speex_compute_agc()[all …]