Unverified Commit 28dc2fc0 authored by norvell's avatar norvell
Browse files

Fix for non-diegetic panning with FIX_BASOP_2023_TDREND_DISTATT_PRECISION

parent 387619a8
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -493,22 +493,16 @@ void TDREND_SRC_REND_UpdateFiltersFromSpatialParams_fx(
        set32_fx( hrf_left, 0, *filterlength );
        set32_fx( hrf_right, 0, *filterlength );
#ifdef FIX_BASOP_2023_TDREND_DISTATT_PRECISION
        hrf_left[0] = L_shr( L_add( SrcSpatial_p->Pos_p_fx[1], ONE_IN_Q22 ), 1 ); // Q22
        move32();
        hrf_right[0] = L_sub( ONE_IN_Q22, hrf_left[0] ); // Q22
        move32();
        hrf_left_e = 9;
        move16();
        hrf_right_e = 9;
        hrf_left[0] = L_shr( L_add( L_shl( SrcSpatial_p->Pos_p_fx[1], 3 ), ONE_IN_Q25 ), 1 ); // Q25
#else
        hrf_left[0] = L_shr( L_add( SrcSpatial_p->Pos_p_fx[1], ONE_IN_Q25 ), 1 ); // Q25
#endif
        move32();
        hrf_right[0] = L_sub( ONE_IN_Q25, hrf_left[0] ); // Q25
        move32();
        hrf_left_e = 6;
        move16();
        hrf_right_e = 6;
#endif
        move16();
        *intp_count = MAX_INTERPOLATION_STEPS; // Q22
        move16();