Home
last modified time | relevance | path

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

/third_party/pulseaudio/speex/libspeexdsp/
H A Dpreprocess.c232 float *loudness_weight; /**< Perceptual loudness curve */ member
501 st->loudness_weight = (float*)speex_alloc(N*sizeof(float)); in speex_preprocess_state_init()
505 /*st->loudness_weight[i] = .5f*(1.f/(1.f+ff/8000.f))+1.f*exp(-.5f*(ff-3800.f)*(ff-3800.f)/9e5f);*/ in speex_preprocess_state_init()
506 st->loudness_weight[i] = .35f-.35f*ff/16000.f+.73f*exp(-.5f*(ff-3800)*(ff-3800)/9e5f); in speex_preprocess_state_init()
507 if (st->loudness_weight[i]<.01f) in speex_preprocess_state_init()
508 st->loudness_weight[i]=.01f; in speex_preprocess_state_init()
509 st->loudness_weight[i] *= st->loudness_weight[i]; in speex_preprocess_state_init()
544 speex_free(st->loudness_weight); in speex_preprocess_state_destroy()
575 loudness += 2.f*N*st->ps[i]* st->loudness_weight[ in speex_compute_agc()
[all...]

Completed in 1 milliseconds