Commit fb7b4020 authored by vaclav's avatar vaclav
Browse files

fix

parent 68e8c981
Loading
Loading
Loading
Loading
Loading
+19 −4
Original line number Diff line number Diff line
@@ -247,10 +247,18 @@ void decod_unvoiced_ivas_fx(
         * Excitation enhancements (update of total excitation signal)
         *----------------------------------------------------------------*/

        /*enhancer_fx(st_fx->core_brate, 0, coder_type, i_subfr_fx, L_FRAME, voice_fac_fx, st_fx->stab_fac_fx,
            norm_gain_code_fx, gain_inov_fx, &st_fx->gc_threshold_fx, code_fx, exc2_fx, gain_pit_fx, &(st_fx->dm_fx), st_fx->Q_exc);*/
#ifdef REMOVE_EVS_DUPLICATES
        IF( EQ_16( st_fx->element_mode, EVS_MONO ) )
        {
            enhancer_fx( st_fx->core_brate, 0, coder_type, i_subfr_fx, L_FRAME, voice_fac_fx, st_fx->stab_fac_fx,
                         norm_gain_code_fx, gain_inov_fx, &st_fx->gc_threshold_fx, code_fx, exc2_fx, gain_pit_fx, &( st_fx->dm_fx ), st_fx->Q_exc );
        }
        ELSE
#endif
        {
            enhancer_ivas_fx( MODE1, st_fx->core_brate, uc_two_stage_flag, 0, coder_type, i_subfr_fx, L_FRAME, voice_fac_fx, st_fx->stab_fac_fx,
                              norm_gain_code_fx, gain_inov_fx, &st_fx->gc_threshold_fx, code_fx /*Q9/Q12?*/, exc2_fx, gain_pit_fx, &( st_fx->dm_fx ), st_fx->Q_exc );
        }

        Word16 tmp_idx;
        tmp_idx = 0;
@@ -258,9 +266,16 @@ void decod_unvoiced_ivas_fx(
        if ( i_subfr_fx != 0 )
        {
            idiv1616( i_subfr_fx, L_SUBFR );
#ifdef REMOVE_EVS_DUPLICATES
            IF( EQ_16( st_fx->element_mode, EVS_MONO ) )
            {
                tmp_idx = idiv1616( i_subfr_fx, L_SUBFR );
            }
#endif
        }
        voice_factors_fx[tmp_idx] = 0;
        move16();

        interp_code_5over2_fx( &exc_fx[i_subfr_fx], &bwe_exc_fx[( ( i_subfr_fx * 2 * HIBND_ACB_L_FAC ) >> 1 )], L_SUBFR );

        p_Aq_fx += ( M + 1 );