diff options
author | Fraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de> | 2019-04-26 18:52:18 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-04-26 18:52:18 -0700 |
commit | a3a7d15dc2191a450bd288a2008ed6a42e43f142 (patch) | |
tree | 3823dc51f22ec509c64e73eff0d211937e0a165e /libAACdec/src/aacdecoder_lib.cpp | |
parent | 7f075eb874c5391ef1678caf732395b073450542 (diff) | |
parent | 14f7e1369382c0a399b991648c96fbcf8940efc8 (diff) | |
download | fdk-aac-a3a7d15dc2191a450bd288a2008ed6a42e43f142.tar.gz fdk-aac-a3a7d15dc2191a450bd288a2008ed6a42e43f142.tar.bz2 fdk-aac-a3a7d15dc2191a450bd288a2008ed6a42e43f142.zip |
MPEG-4/D DRC unification, loudness norm default at -24
am: 14f7e13693
Change-Id: I63974f68f2f2a18a6d77e9a5e718a902693679e0
Diffstat (limited to 'libAACdec/src/aacdecoder_lib.cpp')
-rw-r--r-- | libAACdec/src/aacdecoder_lib.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libAACdec/src/aacdecoder_lib.cpp b/libAACdec/src/aacdecoder_lib.cpp index d0e4ebc..4046d66 100644 --- a/libAACdec/src/aacdecoder_lib.cpp +++ b/libAACdec/src/aacdecoder_lib.cpp @@ -120,7 +120,7 @@ amm-info@iis.fraunhofer.de /* Decoder library info */ #define AACDECODER_LIB_VL0 3 #define AACDECODER_LIB_VL1 1 -#define AACDECODER_LIB_VL2 0 +#define AACDECODER_LIB_VL2 2 #define AACDECODER_LIB_TITLE "AAC Decoder Lib" #ifdef __ANDROID__ #define AACDECODER_LIB_BUILD_DATE "" @@ -823,11 +823,15 @@ LINKSPEC_CPP AAC_DECODER_ERROR aacDecoder_SetParam( case AAC_DRC_ATTENUATION_FACTOR: /* DRC compression factor (where 0 is no and 127 is max compression) */ errorStatus = aacDecoder_drcSetParam(hDrcInfo, DRC_CUT_SCALE, value); + uniDrcErr = FDK_drcDec_SetParam(self->hUniDrcDecoder, DRC_DEC_COMPRESS, + value * (FL2FXCONST_DBL(0.5f / 127.0f))); break; case AAC_DRC_BOOST_FACTOR: /* DRC boost factor (where 0 is no and 127 is max boost) */ errorStatus = aacDecoder_drcSetParam(hDrcInfo, DRC_BOOST_SCALE, value); + uniDrcErr = FDK_drcDec_SetParam(self->hUniDrcDecoder, DRC_DEC_BOOST, + value * (FL2FXCONST_DBL(0.5f / 127.0f))); break; case AAC_DRC_REFERENCE_LEVEL: |