Commit bca77ac5 authored by vaclav's avatar vaclav
Browse files

fix

parent 5f1ec82f
Loading
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -985,7 +985,11 @@ UWord8 apa_exec_ivas_fx(
        Scale_sig( ps->buf_out_fx, ps->buf_out_capacity, sub( Q_a_out, ps->Q_buf_out ) ); // Q_buf_out -> Q_a_out
        IF( EQ_32( ps->scale, 100 ) )
        {
#ifdef FIX_APA_EXECS_SCALING
            FOR( i = 0; i < ps->l_frm; i++ )
#else
            FOR( i = 0; i < ps->num_channels * APA_BUF_PER_CHANNEL; i++ )
#endif
            {
                a_out[i] = a_in[i]; // Q11
                move32();
@@ -997,7 +1001,11 @@ UWord8 apa_exec_ivas_fx(
        {
            Word16 *frm_in_ptr = &( frm_in[ps->l_frm] );

#ifdef FIX_APA_EXECS_SCALING
            FOR( i = 0; i < ps->l_frm; i++ )
#else
            FOR( i = 0; i < ps->num_channels * APA_BUF_PER_CHANNEL; i++ )
#endif
            {
                a_tmp[i] = extract_h( L_shl( a_in[i], add( Q_a_out, Q5 ) ) ); // Q_a_out
                move16();
@@ -1047,7 +1055,11 @@ UWord8 apa_exec_ivas_fx(
                }
            }

#ifdef FIX_APA_EXECS_SCALING
            FOR( i = 0; i < l_frm_out; i++ )
#else
            FOR( i = 0; i < ps->num_channels * APA_BUF_PER_CHANNEL; i++ )
#endif
            {
                a_out[i] = L_shl( a_tmp[i], sub( Q11, Q_a_out ) ); // Q0 -> Q11
                move32();