Commit 3b89290a authored by bayers's avatar bayers
Browse files

fix also binaural ener correction for ParamISM and JBM

parent da23a911
Loading
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -207,6 +207,13 @@ ivas_error ivas_jbm_dec_tc(
        {
            ivas_mono_downmix_render_passive( st_ivas, output, output_frame );
        }
#ifdef FIX_591_PARAMISM_JBM_ENER_CORRECTION
        else if ( st_ivas->ism_mode == ISM_MODE_PARAM && ( st_ivas->renderer_type == RENDERER_BINAURAL_PARAMETRIC || st_ivas->renderer_type == RENDERER_BINAURAL_PARAMETRIC_ROOM || st_ivas->renderer_type == RENDERER_STEREO_PARAMETRIC ) )
        {
            /* loudness correction */
            ivas_dirac_dec_binaural_sba_gain( output, st_ivas->nchan_transport, output_frame );
        }
#endif
    }
    else if ( st_ivas->ivas_format == SBA_FORMAT || st_ivas->ivas_format == MASA_FORMAT )
    {