Commit 0470a382 authored by norvell's avatar norvell
Browse files

Merge branch...

Merge branch 'float-1573-td-renderer-distance-attenuation-uses-20-ms-instead-of-5-ms-update' into 'main'

[Non BE][Allow regression] Resolve: 1573 TD renderer distAtt updated at 20 ms

See merge request !2962
parents 0364da68 2a178c84
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -124,6 +124,7 @@
#define FIX_BASOP_2531_MCT_CP_BITRATE                   /* FhG: BASOP issue 2531: Fix MCT cp_bitrate calculation; affects bitrate switching only */
#define FIX_BASOP_2541_OMASA_ENC_FIXES                  /* Nokia: BASOP issue 2541: Fix function ivas_encode_masaism_metadata_fx */
#define FIX_BASOP_2545_FIX_LTV_REGRESSION_2529          /* Nokia: BASOP issue 2545: Fix LTV regression caused by issue 2529 fix */
#define FIX_FLOAT_1573_POSITION_UPDATE                  /* Eri: Float issue 1573: For static orientation and listener movement, the PoseUpdated flag is cleared and prevents 5 ms update rate. */
#define FIX_BASOP_2521_DIRAC_STEREO_STEFFI_NRGS         /* FhG: BASOP issue 2521: Fix wrong porting for determination of first subframe length in ivas_sba_dirac_stereo_compute_td_stefi_nrgs() */

/* ##################### End NON-BE switches ########################### */
+11 −0
Original line number Diff line number Diff line
@@ -112,9 +112,15 @@ ivas_error TDREND_MIX_LIST_SetOrient_fx(
    /* Get listener */
    List_p = hBinRendererTd->Listener_p;

#ifdef FIX_FLOAT_1573_POSITION_UPDATE
    /* Evaluate the normalized orientation vectors and set pose update flag */
    /* Use OR since the position may have been updated in TDREND_MIX_LIST_SetPos */
    List_p->PoseUpdated = s_or( List_p->PoseUpdated, TDREND_SPATIAL_EvalOrthonormOrient_fx( List_p->Front_fx, List_p->Up_fx, List_p->Right_fx, FrontVec_p_fx, UpVec_p_fx, orient_q ) ); // Q0
#else
    /* Evaluate the normalized orientation vectors and set pose update flag */
    List_p->PoseUpdated = TDREND_SPATIAL_EvalOrthonormOrient_fx( List_p->Front_fx, List_p->Up_fx, List_p->Right_fx, FrontVec_p_fx, UpVec_p_fx, orient_q ); // Q0
    move16();
#endif

    return IVAS_ERR_OK;
}
@@ -204,6 +210,11 @@ ivas_error TDREND_MIX_Init_fx(
    TDREND_SPATIAL_VecInit_fx( hBinRendererTd->Listener_p->Front_fx, 0, 0, -ONE_IN_Q30 );
    TDREND_SPATIAL_VecInit_fx( hBinRendererTd->Listener_p->Up_fx, 0, ONE_IN_Q30, 0 );
    TDREND_SPATIAL_VecInit_fx( hBinRendererTd->Listener_p->Right_fx, ONE_IN_Q30, 0, 0 );
#ifdef FIX_FLOAT_1573_POSITION_UPDATE
    hBinRendererTd->Listener_p->PoseUpdated = FALSE;
    move16();
#endif

    /* Init HR filter set */
    IF( *hHrtfTD == NULL )
    {