Commit b4639fc0 authored by det's avatar det
Browse files

patched MR1317 into float-pc.

parent fbeb5ef8
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -173,6 +173,7 @@
#define NONBE_1233_HQ_CLASSIFIER_DIV_BY_ZERO            /* Eri: issue 1233: Address possible division by zero in hf_spectrum_sparseness() */

#define NONE_BE_FIX_BASOP_1044_OSBA_PRERENDER_MIX_GAINS /* DLB: adjust prerendering and mixing gain in OSBA encoder. This is fix to float codes*/
#define FIX_954_OTR_REF_VEC                             /* FhG: Fix forward vector direction for OTR REF VEC mode */
/* #################### End FIXES switches ############################ */

#define BASOP_NOGLOB                                    /* Disable global symbols in BASOPs, Overflow/Carry in BASOPs disabled, additional BASOPs in case of Overflow */
+12 −0
Original line number Diff line number Diff line
@@ -589,7 +589,11 @@ ivas_error ivas_orient_trk_SetReferenceVector(
        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( refPos, listenerPos );
#else
            acousticFrontVector = VectorSubtract( listenerPos, refPos );
#endif
            break;
        case IVAS_HEAD_ORIENT_TRK_REF_VEC_LEV:
            /* ignore the height difference between listener position and reference position */
@@ -598,7 +602,11 @@ ivas_error ivas_orient_trk_SetReferenceVector(
            listenerPosLevel.y = listenerPos.y;
            refPosLevel.x = refPos.x;
            refPosLevel.y = refPos.y;
#ifdef FIX_954_OTR_REF_VEC
            acousticFrontVector = VectorSubtract( refPosLevel, listenerPosLevel );
#else
            acousticFrontVector = VectorSubtract( listenerPosLevel, refPosLevel );
#endif
            break;
        default:
            return IVAS_ERR_WRONG_PARAMS;
@@ -612,7 +620,11 @@ ivas_error ivas_orient_trk_SetReferenceVector(
        return IVAS_ERR_WRONG_PARAMS;
    }

#ifdef FIX_954_OTR_REF_VEC
    ivasForwardVector.x = 1.0f;
#else
    ivasForwardVector.x = -1.0f;
#endif
    ivasForwardVector.y = 0.0f;
    ivasForwardVector.z = 0.0f;
    VectorRotationToQuaternion( ivasForwardVector, acousticFrontVector, &pOTR->refRot );