Commit 083bc63a authored by Manuel Jander's avatar Manuel Jander
Browse files

Correct scale of hb_speech.

parent f1266e46
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -492,15 +492,10 @@ void wb_pre_proc_ivas_fx(
            }

#ifdef NONBE_FIX_ISSUE_2206
            /* rescale the hb_speech and memories back to Q-1 to keep the downstream BWE coding unaffected */
            /* rescale the hb_speech and memories back to new_inp_resamp16k_q to keep the downstream BWE coding unaffected */
            Scale_sig( hBWE_TD->decim_state1_fx, ( 2 * ALLPASSSECTIONS_STEEP + 1 ), sub( new_inp_resamp16k_q, Q_wb_sp ) );
            Scale_sig( hBWE_TD->decim_state2_fx, ( 2 * ALLPASSSECTIONS_STEEP + 1 ), sub( new_inp_resamp16k_q, Q_wb_sp ) );
            IF( st_fx->element_mode == EVS_MONO )
            {
            Scale_sig( hb_speech, L_FRAME16k / 4, sub( new_inp_resamp16k_q, Q_wb_sp ) );
                Q_wb_sp = new_inp_resamp16k_q;
                move16();
            }
#else
            /* rescale the hb_speech and memories back to Q-1 to keep the downstream BWE coding unaffected */
            Scale_sig( hb_speech, L_FRAME16k / 4, negate( Q_wb_sp ) );