Unverified Commit 608db14b authored by norvell's avatar norvell
Browse files

Fix for non-diegetic panning

parent 9215c617
Loading
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -492,6 +492,15 @@ void TDREND_SRC_REND_UpdateFiltersFromSpatialParams_fx(
        move32();
        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;
#else
        hrf_left[0] = L_shr( L_add( SrcSpatial_p->Pos_p_fx[1], ONE_IN_Q25 ), 1 ); // Q25
        move32();
        hrf_right[0] = L_sub( ONE_IN_Q25, hrf_left[0] ); // Q25
@@ -499,6 +508,7 @@ void TDREND_SRC_REND_UpdateFiltersFromSpatialParams_fx(
        hrf_left_e = 6;
        move16();
        hrf_right_e = 6;
#endif
        move16();
        *intp_count = MAX_INTERPOLATION_STEPS; // Q22
        move16();