Commit fbaa436b authored by vaillancour's avatar vaillancour
Browse files

Fixes for stv8n2_sw_72_244_8kHz.f06.COD

parent 7f3d706b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -315,7 +315,11 @@ static void getEnvelope(
    inv_len = mult_r(level, InvIntTable[nFilterLength]);
    FOR (i = n1; i < nSamples-n2; i++)
    {
#ifdef BASOP_NOGLOB
        sum = L_add_sat(sum, L_sub(powerSpec[i+n2],powerSpec[i-n1]));
#else
        sum = L_add(sum, L_sub(powerSpec[i+n2],powerSpec[i-n1]));
#endif
        envelope[i] = Mpy_32_16_1(sum, inv_len);
        move32();
    }