Commit 140433d1 authored by malenov's avatar malenov Committed by Sandesh Venkatesh
Browse files

just copy signal to temp buffer when maxm32 is 0

parent 45f33c0e
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ void GenSHBSynth_fx_32(
    Word16 shift = 0;
    Word32 maxm32, input_synspeech_temp[L_FRAME16k];

    /* find the maximum value and derive the shift to improve precision of the Hilber filter */
    /* find the maximum value and derive the shift to improve precision of the Hilbert filter */
    maxm32 = L_deposit_l( 0 );
    FOR( i = 0; i < L_FRAME16k; i++ )
    {
@@ -98,6 +98,10 @@ void GenSHBSynth_fx_32(
        Scale_sig32( state_lsyn_filt_shb_local, 2 * ALLPASSSECTIONS_STEEP, shift );
        Scale_sig32( Hilbert_Mem, HILBERT_MEM_SIZE, shift );
    }
    else
    {
        Copy32( input_synspeech, input_synspeech_temp, L_FRAME16k );
    }

    Interpolate_allpass_steep_32( input_synspeech_temp, state_lsyn_filt_shb_local, L_FRAME16k, speech_buf_32k );
#else