Unverified Commit 64925c88 authored by norvell's avatar norvell
Browse files

Try harmonization

parent 6d1c889b
Loading
Loading
Loading
Loading
+20 −1
Original line number Diff line number Diff line
@@ -1973,6 +1973,24 @@ static void ivas_subst_spec_fx(
    }
    ELSE
    {
#if 1
        tmp = NS2SA_FX2( L_mult0( output_frame, 50 ), PH_ECU_ALDO_OLP2_NS );
        move16();
        tmp = sub( tmp, ph_ecu_lookahead );
        tmp = add( tmp, sub( Lecu, shr( sub( Lecu, Lprot ), 1 ) ) );
        tmp = sub( tmp, shr( output_frame, 1 ) );
        tmp1 = L_mac0( L_mult0( tmp, Lprot_inv ), time_offs, Lprot_inv ); /* Q22 */

        pPlocsi = plocsi;
        pCorrPhase = corr_phase;
        FOR( m = 0; m < *num_plocs; m++ )
        {
            acc = L_shl( Mpy_32_32( *pPlocsi++, tmp1 ), 9 ); /* 16+22+9-31 = 16*/
            *pCorrPhase++ = acc;                             /* in Q16. 2*PI is not included. */
            move32();
        }
    }
#else
#ifdef HARM_HQ_CORE
        IF( element_mode == EVS_MONO )
        {
@@ -2015,6 +2033,7 @@ static void ivas_subst_spec_fx(
            }
        }
    }
#endif
    one_peak_flag_mask = 32767 /* 1.0f in Q15 */; /* all ones mask -> keep  */
    move16();
    IF( element_mode != EVS_MONO )