Home
last modified time | relevance | path

Searched refs:agc_gain (Results 1 - 1 of 1) sorted by relevance

/third_party/pulseaudio/speex/libspeexdsp/
H A Dpreprocess.c234 float agc_gain; /**< Current AGC gain */ member
513 st->agc_gain = 1; in speex_preprocess_state_init()
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()
604 st->agc_gain = target_gain; in speex_compute_agc()
606 /*fprintf (stderr, "%f %f %f\n", loudness, (float)AMP_SCALE_1*pow(st->loudness, 1.0f/LOUDNESS_EXP), st->agc_gain);*/ in speex_compute_agc()
609 ft[i] *= st->agc_gain; in speex_compute_agc()
[all...]

Completed in 3 milliseconds