Searched refs:loudness_weight (Results 1 – 1 of 1) sorted by relevance
236 float *loudness_weight; /**< Perceptual loudness curve */ member505 st->loudness_weight = (float*)speex_alloc(N*sizeof(float)); in speex_preprocess_state_init()510 st->loudness_weight[i] = .35f-.35f*ff/16000.f+.73f*exp(-.5f*(ff-3800)*(ff-3800)/9e5f); in speex_preprocess_state_init()511 if (st->loudness_weight[i]<.01f) in speex_preprocess_state_init()512 st->loudness_weight[i]=.01f; in speex_preprocess_state_init()513 st->loudness_weight[i] *= st->loudness_weight[i]; in speex_preprocess_state_init()548 speex_free(st->loudness_weight); in speex_preprocess_state_destroy()579 loudness += 2.f*N*st->ps[i]* st->loudness_weight[i]; in speex_compute_agc()