From b5c153f643d54e1d0997359784f1964d074a0346 Mon Sep 17 00:00:00 2001 From: Andrea Eichenseer Date: Tue, 25 Jul 2023 16:48:03 +0200 Subject: [PATCH] Fix 549: binaural output too quiet in ParamISM. --- lib_com/options.h | 2 ++ lib_dec/ivas_dec.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index c2bc0b866b..a87998242b 100755 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -210,6 +210,8 @@ #define FIX_626_VARIABLE_TYPE_MDCT_CONC /* FhG: trivial fix to fix USAN error */ #define FIX_616_DIV_ZERO_MCT /*FhG : Fix UBSAN division by zero error of issue 616*/ +#define FIX_549_PARAM_ISM_BIN_GAIN /* FhG: Issue 549 : fix too quiet binaural output in ParamISM */ + /* ################## End BE DEVELOPMENT switches ######################### */ diff --git a/lib_dec/ivas_dec.c b/lib_dec/ivas_dec.c index 5ca878a00e..8a66e36024 100644 --- a/lib_dec/ivas_dec.c +++ b/lib_dec/ivas_dec.c @@ -212,6 +212,11 @@ ivas_error ivas_dec( { if ( st_ivas->renderer_type == RENDERER_BINAURAL_PARAMETRIC || st_ivas->renderer_type == RENDERER_BINAURAL_PARAMETRIC_ROOM || st_ivas->renderer_type == RENDERER_STEREO_PARAMETRIC ) { +#ifdef FIX_549_PARAM_ISM_BIN_GAIN + /* loudness correction */ + ivas_dirac_dec_binaural_sba_gain( output, st_ivas->nchan_transport, output_frame ); +#endif + ivas_param_ism_params_to_masa_param_mapping( st_ivas ); ivas_dirac_dec_binaural( st_ivas, st_ivas->hCombinedOrientationData, output, st_ivas->nchan_transport ); -- GitLab