From 048b55c4a21491413acdcc938da1abdde878f5cf Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Wed, 4 Mar 2020 16:18:15 +0100 Subject: [PATCH] Added REDUCE_LOUDNESS_FACTOR for avoiding digital clipping. --- .gitignore | 3 +++ .swp | Bin 12288 -> 0 bytes config.h | 3 ++- dexed.cpp | 3 +++ 4 files changed, 8 insertions(+), 1 deletion(-) delete mode 100644 .swp diff --git a/.gitignore b/.gitignore index 259148f..b44b649 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,6 @@ *.exe *.out *.app + +# +*.swp diff --git a/.swp b/.swp deleted file mode 100644 index 8bde060a4a30fe917771c4f2c9e5cd9e8972a13b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeI%O-sWt7zgmogWyF)zd)Q9l`-aa*uc{UA|e}OFj0qu^kp-yOGlc{xr^V!Pvgm> zek6UW9n2SY)QSJV)2B(E(DX-pD0K>_$8}!G7Z|nmvC3?y6pFq*bBLd;Zw>I!Z@YYS$OayUY(AVUpS$Z`MSs+BiBC_2b5DuX>i_#T@U- zAfl=diT(Z-xHYlAdq5AsC{*6J9%K+%?p{f=$E~sf-9=1JrJ}HWB!hUiKTukH8I$AL lu?j7V)Pz)zj&W(#j^gd(clip_val >> REDUCE_LOUDNESS) / 0x7fff; +#if defined(REDUCE_LOUDNESS_FACTOR) + f *= REDUCE_LOUDNESS_FACTOR; +#endif if (f > 1.0) { f = 1.0;