Commit 9dde5cb3 authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

modify energy-compensation gains in DirAC under DIRAC_DRCT_GAIN_TUNING

parent 65292288
Loading
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -148,15 +148,13 @@
/*#define FIX_IVAS_185_MDCT_ST_PLC_FADEOUT*/            /* IVAS-185 fix bug in TCX-PLC fadeout for MDCT-Stereo and improve fadeout by fading to background noise instead of white noise */
/*#define FIX_I1_113*/                                  /* under review : MCT bit distribution optimization for SBA high bitrates*/


#define SIMPLIFY_SBA_RENDERING_LOGIC                    /* SBA rendering maintenance related to ticket #45 */
#define SBA_CLEANING                                    /* SBA maintenance related to ticket #45 */ 




#define REFACTOR_REVERB_INIT_ADD_CFG_CHECKS             /* Simplify and improve reverb initialization + add range checks on config parameter values */ 

#define DIRAC_DRCT_GAIN_TUNING

/* ################## End DEVELOPMENT switches ######################### */
/* clang-format on */
#endif
+5 −0
Original line number Diff line number Diff line
@@ -729,8 +729,13 @@ void ivas_dirac_dec_output_synthesis_process_subframe_gain_shd(
            g1 = 0.3679f + onset_filter[l] * ( 0.1175f - 0.3679f );
            g2 = ( 1.f - g1 ) * *( p_gains_dir );
            g2 += g1 * ( *( p_cy_cross_dir_smooth++ ) );
#ifdef DIRAC_DRCT_GAIN_TUNING
            g2 = max( g2, 0.85f );
            g2 = min( g2, 1.15f );
#else
            g2 = max( g2, 0.5f );
            g2 = min( g2, 2.f );
#endif
            *( p_gains_dir++ ) = g2;
        }
    }