Lines Matching defs:loudness_weight
232 float *loudness_weight; /**< Perceptual loudness curve */
501 st->loudness_weight = (float*)speex_alloc(N*sizeof(float));
505 /*st->loudness_weight[i] = .5f*(1.f/(1.f+ff/8000.f))+1.f*exp(-.5f*(ff-3800.f)*(ff-3800.f)/9e5f);*/
506 st->loudness_weight[i] = .35f-.35f*ff/16000.f+.73f*exp(-.5f*(ff-3800)*(ff-3800)/9e5f);
507 if (st->loudness_weight[i]<.01f)
508 st->loudness_weight[i]=.01f;
509 st->loudness_weight[i] *= st->loudness_weight[i];
544 speex_free(st->loudness_weight);
575 loudness += 2.f*N*st->ps[i]* st->loudness_weight[i];