Commit cc7dadab authored by vaillancour's avatar vaillancour
Browse files

fix stv32n4_1280_48kHz

parent 71ef7765
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -352,7 +352,11 @@ void tcx_windowing_synthesis_current_frame(
        }
        ELSE
        {
#ifdef BASOP_NOGLOB
            lerp(acelp_zir, tmp_buf, acelp_zir_len, idiv1616U(shl_sat(acelp_zir_len, LD_FSCALE_DENOM), fullbandScale));
#else
            lerp(acelp_zir, tmp_buf, acelp_zir_len, idiv1616U(shl(acelp_zir_len, LD_FSCALE_DENOM), fullbandScale));
#endif
            acelp_zir = tmp_buf;
        }

+4 −0
Original line number Diff line number Diff line
@@ -894,7 +894,11 @@ void decoder_tcx(
                BASOP_Util_Divide_MantExp(extract_h(E_2ndlast), exp2, extract_h(E_last), exp1, &tmp1, &tmp2);

                tmp1 = shr(tmp1,2); /*Q13*/
#ifdef BASOP_NOGLOB
                tmp1 = shl_sat(tmp1,tmp2);
#else
                tmp1 = shl(tmp1,tmp2);
#endif
                test();
                test();
                /* replace higher energy TCX5 frame by lower one to avoid energy fluctuation */
+4 −0
Original line number Diff line number Diff line
@@ -909,7 +909,11 @@ void con_tcx(

    Copy_Scale_sig(buf, mem_syn, M, exp_scale);

#ifdef BASOP_NOGLOB
    tmp_deemph = shl_sat(tmp_deemph,Q_syn);
#else
    tmp_deemph = shl(tmp_deemph,Q_syn);
#endif
    st->Q_syn = Q_syn;

    /*buf[OLD_EXC_SIZE_DEC;3/2 L_frame] Q1: exc*/