📄 presets.c
字号:
SET_OPTION(ATHcurve, 8, -1); SET_OPTION(athaa_sensitivity, -22, 0); lame_set_experimentalY(gfp, 1); return preset; } } } case V6: { lame_set_VBR_q(gfp, 6); switch (lame_get_VBR(gfp)) { case vbr_rh: { SET_OPTION(short_threshold_lrm, 6.60f, -1); SET_OPTION(short_threshold_s, 145.0f, -1); SET_OPTION(quant_comp, 9, -1); SET_OPTION(quant_comp_short, 9, -1); SET_OPTION(psy_model, PSY_NSPSYTUNE, -1); SET_OPTION(msfix, 2.30, -1); SET_OPTION(maskingadjust, .67, 0); SET_OPTION(maskingadjust_short, .65, 0); SET_OPTION(interChRatio, 0.0004, -1); SET_OPTION(ATHlower, -14.7, 0); SET_OPTION(ATHcurve, 6.5, -1); SET_OPTION(athaa_sensitivity, -19, 0); lame_set_experimentalY(gfp, 1); return preset; } default: { SET_OPTION(short_threshold_lrm, 6.60f, -1); SET_OPTION(short_threshold_s, 145.0f, -1); SET_OPTION(quant_comp, 0, -1); SET_OPTION(quant_comp_short, 0, -1); SET_OPTION(psy_model, PSY_NSPSYTUNE, -1); SET_OPTION(msfix, 2.30, -1); SET_OPTION(maskingadjust, 0.67, 0); SET_OPTION(maskingadjust_short, 0.65, 0); SET_OPTION(interChRatio, 0.0004, -1); SET_OPTION(ATHlower, -14.5, 0); SET_OPTION(ATHcurve, 6.5, -1); SET_OPTION(athaa_sensitivity, -19, 0); lame_set_experimentalY(gfp, 1); return preset; } } } case V5: { lame_set_VBR_q(gfp, 5); switch (lame_get_VBR(gfp)) { case vbr_rh: { SET_OPTION(short_threshold_lrm, 6.40f, -1); SET_OPTION(short_threshold_s, 140.0f, -1); SET_OPTION(quant_comp, 9, -1); SET_OPTION(quant_comp_short, 9, -1); SET_OPTION(psy_model, PSY_NSPSYTUNE, -1); SET_OPTION(msfix, 1.95, -1); SET_OPTION(maskingadjust, .5, 0); SET_OPTION(maskingadjust_short, .4, 0); SET_OPTION(interChRatio, 0.0002, -1); SET_OPTION(ATHlower, -7.5, 0); SET_OPTION(ATHcurve, 4, -1); SET_OPTION(athaa_sensitivity, -12, 0); lame_set_experimentalY(gfp, 1); return preset; } default: { SET_OPTION(short_threshold_lrm, 6.40f, -1); SET_OPTION(short_threshold_s, 140.0f, -1); SET_OPTION(quant_comp, 0, -1); SET_OPTION(quant_comp_short, 0, -1); SET_OPTION(psy_model, PSY_NSPSYTUNE, -1); SET_OPTION(msfix, 1.95, -1); SET_OPTION(maskingadjust, 0.45, 0); SET_OPTION(maskingadjust_short, 0.35, 0); SET_OPTION(interChRatio, 0.0002, -1); SET_OPTION(ATHlower, -7.7, 0); SET_OPTION(ATHcurve, 4, -1); SET_OPTION(athaa_sensitivity, -12, 0); lame_set_experimentalY(gfp, 1); return preset; } } } case V4: { /*MEDIUM*/ lame_set_VBR_q(gfp, 4); switch (lame_get_VBR(gfp)) { case vbr_rh: { SET_OPTION(short_threshold_lrm, 6.00f, -1); SET_OPTION(short_threshold_s, 135.0f, -1); SET_OPTION(quant_comp, 9, -1); SET_OPTION(quant_comp_short, 9, -1); SET_OPTION(psy_model, PSY_NSPSYTUNE, -1); lame_set_exp_nspsytune(gfp, lame_get_exp_nspsytune(gfp) | 2); /* safejoint */ SET_OPTION(msfix, 1.79, -1); SET_OPTION(maskingadjust, -.7, 0); SET_OPTION(maskingadjust_short, -1.1, 0); SET_OPTION(ATHlower, 1.1, 0); SET_OPTION(ATHcurve, 3.5, -1); SET_OPTION(athaa_sensitivity, -8, 0); lame_set_experimentalY(gfp, 1); return preset; } default: { SET_OPTION(short_threshold_lrm, 6.00f, -1); SET_OPTION(short_threshold_s, 135.0f, -1); SET_OPTION(quant_comp, 0, -1); SET_OPTION(quant_comp_short, 0, -1); SET_OPTION(psy_model, PSY_NSPSYTUNE, -1); lame_set_exp_nspsytune(gfp, lame_get_exp_nspsytune(gfp) | 2); /* safejoint */ SET_OPTION(msfix, 1.79, -1); SET_OPTION(maskingadjust, -.7, 0); SET_OPTION(maskingadjust_short, -1.1, 0); SET_OPTION(ATHlower, 0, 0); SET_OPTION(ATHcurve, 3.5, -1); SET_OPTION(athaa_sensitivity, -8, 0); lame_set_experimentalY(gfp, 1); return preset; } } } case V3: { lame_set_VBR_q(gfp, 3); switch (lame_get_VBR(gfp)) { case vbr_rh: { SET_OPTION(short_threshold_lrm, 5.80f, -1); SET_OPTION(short_threshold_s, 130.0f, -1); SET_OPTION(quant_comp, 9, -1); SET_OPTION(quant_comp_short, 9, -1); SET_OPTION(psy_model, PSY_NSPSYTUNE, -1); lame_set_exp_nspsytune(gfp, lame_get_exp_nspsytune(gfp) | 2); /* safejoint */ SET_OPTION(msfix, 1.64, -1); SET_OPTION(maskingadjust, -1.8, 0); SET_OPTION(maskingadjust_short, -2.8, 0); SET_OPTION(ATHlower, 2.6, 0); SET_OPTION(ATHcurve, 3, -1); SET_OPTION(athaa_sensitivity, -4, 0); /* modify sfb21 by 5 dB plus ns-treble=0 */ lame_set_exp_nspsytune(gfp, lame_get_exp_nspsytune(gfp) | (20 << 20)); lame_set_experimentalY(gfp, 1); return preset; } default: { SET_OPTION(short_threshold_lrm, 5.80f, -1); SET_OPTION(short_threshold_s, 130.0f, -1); SET_OPTION(quant_comp, 0, -1); SET_OPTION(quant_comp_short, 0, -1); SET_OPTION(psy_model, PSY_NSPSYTUNE, -1); lame_set_exp_nspsytune(gfp, lame_get_exp_nspsytune(gfp) | 2); /* safejoint */ SET_OPTION(msfix, 1.64, -1); SET_OPTION(maskingadjust, -1.45, 0); SET_OPTION(maskingadjust_short, -2.45, 0); SET_OPTION(ATHlower, 1.1, 0); SET_OPTION(ATHcurve, 3, -1); SET_OPTION(athaa_sensitivity, -4, 0); /* modify sfb21 by 3.75 dB plus ns-treble=0 */ lame_set_exp_nspsytune(gfp, lame_get_exp_nspsytune(gfp) | (15 << 20)); lame_set_experimentalY(gfp, 1); return preset; } } } case V2: { /*STANDARD*/ lame_set_VBR_q(gfp, 2); switch (lame_get_VBR(gfp)) { case vbr_rh: { SET_OPTION(short_threshold_lrm, 5.6f, -1); SET_OPTION(short_threshold_s, 125.0f, -1); SET_OPTION(quant_comp, 9, -1); SET_OPTION(quant_comp_short, 9, -1); SET_OPTION(psy_model, PSY_NSPSYTUNE, -1); lame_set_exp_nspsytune(gfp, lame_get_exp_nspsytune(gfp) | 2); /* safejoint */ SET_OPTION(msfix, 1.49, -1); SET_OPTION(maskingadjust, -2.2, 0); SET_OPTION(maskingadjust_short, -3.5, 0); SET_OPTION(ATHlower, 2.8, 0); SET_OPTION(ATHcurve, 2, -1); /* modify sfb21 by 5.25 dB plus ns-treble=0 */ lame_set_exp_nspsytune(gfp, lame_get_exp_nspsytune(gfp) | (21 << 20)); return preset; } default: { SET_OPTION(short_threshold_lrm, 5.6f, -1); SET_OPTION(short_threshold_s, 125.0f, -1); SET_OPTION(quant_comp, 0, -1); SET_OPTION(quant_comp_short, 0, -1); SET_OPTION(psy_model, PSY_NSPSYTUNE, -1); lame_set_exp_nspsytune(gfp, lame_get_exp_nspsytune(gfp) | 2); /* safejoint */ SET_OPTION(msfix, 1.49, -1); SET_OPTION(maskingadjust, -1.7, 0); SET_OPTION(maskingadjust_short, -3.2, 0); SET_OPTION(ATHlower, 2, 0); SET_OPTION(ATHcurve, 2, -1); /* modify sfb21 by 4.5 dB plus ns-treble=0 */ lame_set_exp_nspsytune(gfp, lame_get_exp_nspsytune(gfp) | (18 << 20)); return preset; } } } case V1: { lame_set_VBR_q(gfp, 1); switch (lame_get_VBR(gfp)) { case vbr_rh: { SET_OPTION(short_threshold_lrm, 5.3f, -1); SET_OPTION(short_threshold_s, 125.0f, -1); SET_OPTION(quant_comp, 9, -1); SET_OPTION(quant_comp_short, 9, -1); SET_OPTION(psy_model, PSY_NSPSYTUNE, -1); lame_set_exp_nspsytune(gfp, lame_get_exp_nspsytune(gfp) | 2); /* safejoint */ SET_OPTION(msfix, 1.35, -1); SET_OPTION(maskingadjust, -3.6, 0); SET_OPTION(maskingadjust_short, -5.6, 0); SET_OPTION(ATHlower, 4.5, 0); SET_OPTION(ATHcurve, 1.5, -1); /* modify sfb21 by 5.25 dB plus ns-treble=0 */ lame_set_exp_nspsytune(gfp, lame_get_exp_nspsytune(gfp) | (21 << 20)); return preset; } default: { SET_OPTION(short_threshold_lrm, 5.3f, -1); SET_OPTION(short_threshold_s, 125.0f, -1); SET_OPTION(quant_comp, 0, -1); SET_OPTION(quant_comp_short, 0, -1); SET_OPTION(psy_model, PSY_NSPSYTUNE, -1); lame_set_exp_nspsytune(gfp, lame_get_exp_nspsytune(gfp) | 2); /* safejoint */ SET_OPTION(msfix, 1.35, -1); SET_OPTION(maskingadjust, -3.4, 0); SET_OPTION(maskingadjust_short, -5.4, 0); SET_OPTION(ATHlower, 4.5, 0); SET_OPTION(ATHcurve, 1.5, -1); /* modify sfb21 by 5.25 dB plus ns-treble=0 */ lame_set_exp_nspsytune(gfp, lame_get_exp_nspsytune(gfp) | (21 << 20)); return preset; } } } case V0: { /*EXTREME*/ lame_set_VBR_q(gfp, 0); switch (lame_get_VBR(gfp)) { case vbr_rh: { SET_OPTION(short_threshold_lrm, 5.2f, -1); SET_OPTION(short_threshold_s, 125.0f, -1); SET_OPTION(quant_comp, 9, -1); SET_OPTION(quant_comp_short, 9, -1); SET_OPTION(psy_model, PSY_NSPSYTUNE, -1); lame_set_exp_nspsytune(gfp, lame_get_exp_nspsytune(gfp) | 2); /* safejoint */ SET_OPTION(msfix, .97, -1); SET_OPTION(maskingadjust, -4.2, 0); SET_OPTION(maskingadjust_short, -6.3, 0); SET_OPTION(ATHlower, 4.8, 0); SET_OPTION(ATHcurve, 1, -1); /* modify sfb21 by 5 dB plus ns-treble=0 */ lame_set_exp_nspsytune(gfp, lame_get_exp_nspsytune(gfp) | (21 << 20)); return preset; } default: { SET_OPTION(short_threshold_lrm, 5.2f, -1); SET_OPTION(short_threshold_s, 125.0f, -1); SET_OPTION(quant_comp, 0, -1); SET_OPTION(quant_comp_short, 0, -1); SET_OPTION(psy_model, PSY_NSPSYTUNE, -1); lame_set_exp_nspsytune(gfp, lame_get_exp_nspsytune(gfp) | 2); /* safejoint */ SET_OPTION(msfix, .97, -1); SET_OPTION(maskingadjust, -3.6, 0); SET_OPTION(maskingadjust_short, -5.6, 0); SET_OPTION(ATHlower, 7.5, 0); SET_OPTION(ATHcurve, 1, -1); /* modify sfb21 by 6.5 dB plus ns-treble=0 */ lame_set_exp_nspsytune(gfp, lame_get_exp_nspsytune(gfp) | (26 << 20)); return preset; } } } default: break; } if ((preset >= 8) && (preset <=320)) return apply_abr_preset(gfp, preset, enforce); gfp->preset = 0; /*no corresponding preset found*/ return preset;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -