static FLOAT ATHmdct(SessionConfig_t const *cfg, FLOAT f) { FLOAT ath; ath = ATHformula(cfg, f); ath -= NSATHSCALE; /* modify the MDCT scaling for the ATH and convert to energy */ ath = pow(10.0, ath / 10.0 + cfg->ATHlower); return ath; }
static FLOAT ATHmdct(SessionConfig_t const *cfg, FLOAT f) { FLOAT ath; ath = ATHformula(cfg, f); if (cfg->ATHfixpoint > 0) { ath -= cfg->ATHfixpoint; } else { ath -= NSATHSCALE; } ath += cfg->ATH_offset_db; /* modify the MDCT scaling for the ATH and convert to energy */ ath = powf(10.0f, ath * 0.1f); return ath; }
FLOAT8 ATHmdct( lame_global_flags *gfp, FLOAT8 f ) { lame_internal_flags *gfc = gfp->internal_flags; FLOAT8 ath; ath = ATHformula( f , gfp ); if (gfc->nsPsy.use) { ath -= NSATHSCALE; } else { ath -= 114; } /* modify the MDCT scaling for the ATH */ ath -= gfp->ATHlower; /* convert to energy */ ath = pow( 10.0, ath/10.0 ); return ath; }