Commit 935c1b12 authored by Jan Kiene's avatar Jan Kiene
Browse files

Accept FIX_954_OTR_REF_VEC

parent 35349260
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -67,7 +67,6 @@
#define BASOP_NOGLOB_DECLARE_LOCAL
#endif

#define FIX_954_OTR_REF_VEC                             /* FhG: Fix forward vector direction for OTR REF VEC mode */
#define FIX_867_CLDFB_NRG_SCALE

#define FIX_1378_ACELP_OUT_OF_BOUNDS
+0 −12
Original line number Diff line number Diff line
@@ -799,11 +799,7 @@ ivas_error ivas_orient_trk_SetReferenceVector_fx(
        case IVAS_HEAD_ORIENT_TRK_REF:
        case IVAS_HEAD_ORIENT_TRK_AVG:
        case IVAS_HEAD_ORIENT_TRK_REF_VEC:
#ifdef FIX_954_OTR_REF_VEC
            acousticFrontVector = VectorSubtract_fx( refPos, listenerPos );
#else
            acousticFrontVector = VectorSubtract_fx( listenerPos, refPos );
#endif
            BREAK;
        case IVAS_HEAD_ORIENT_TRK_REF_VEC_LEV:
            /* ignore the height difference between listener position and reference position */
@@ -830,11 +826,7 @@ ivas_error ivas_orient_trk_SetReferenceVector_fx(
            refPosLevel.q_fact = q_min;
            move16();

#ifdef FIX_954_OTR_REF_VEC
            acousticFrontVector = VectorSubtract_fx( refPosLevel, listenerPosLevel );
#else
            acousticFrontVector = VectorSubtract_fx( listenerPosLevel, refPosLevel );
#endif
            BREAK;
        default:
            return IVAS_ERR_WRONG_PARAMS;
@@ -851,11 +843,7 @@ ivas_error ivas_orient_trk_SetReferenceVector_fx(
        return IVAS_ERR_WRONG_PARAMS;
    }

#ifdef FIX_954_OTR_REF_VEC
    ivasForwardVector.x_fx = ONE_IN_Q31;
#else
    ivasForwardVector.x_fx = L_negate( ONE_IN_Q31 );
#endif
    move32();
    ivasForwardVector.y_fx = 0;
    move32();