Commit 6f55d5cc authored by Lauros Pajunen's avatar Lauros Pajunen
Browse files

Change head tracking parameter to not be a pointer

parent 32c65a1d
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1322,7 +1322,7 @@ ivas_error combine_external_and_head_orientations_dec(
);

ivas_error combine_external_and_head_orientations_rend(
    IVAS_REND_HeadRotData *hHeadTrackData,                                          /* i  : head track handle                                       */
    IVAS_REND_HeadRotData hHeadTrackData,                                           /* i  : head track data                                         */
    EXTERNAL_ORIENTATION_HANDLE hExtOrientationData,                                /* i  : external orientation handle                             */
    COMBINED_ORIENTATION_HANDLE hCombinedOrientationData                            /* i/o: combined orientation handle                             */
);
+6 −6
Original line number Diff line number Diff line
@@ -887,7 +887,7 @@ ivas_error combine_external_and_head_orientations_dec(
 *------------------------------------------------------------------------*/

ivas_error combine_external_and_head_orientations_rend(
    IVAS_REND_HeadRotData *hHeadTrackData,               /* i  : head track handle              */
    IVAS_REND_HeadRotData hHeadTrackData,                /* i  : head track data                */
    EXTERNAL_ORIENTATION_HANDLE hExtOrientationData,     /* i  : external orientation handle    */
    COMBINED_ORIENTATION_HANDLE hCombinedOrientationData /* i/o: combined orientation handle    */
)
@@ -898,14 +898,14 @@ ivas_error combine_external_and_head_orientations_rend(
    int16_t i;

    sr_pose_pred_axis = DEFAULT_AXIS;
    if ( hHeadTrackData != NULL )
    if ( hHeadTrackData.hOrientationTracker != NULL )
    {
        if ( hHeadTrackData->headRotEnabled )
        if ( hHeadTrackData.headRotEnabled )
        {
            headRotQuaternions = hHeadTrackData->headPositions;
            listenerPos = hHeadTrackData->Pos;
            headRotQuaternions = hHeadTrackData.headPositions;
            listenerPos = hHeadTrackData.Pos;
        }
        sr_pose_pred_axis = hHeadTrackData->sr_pose_pred_axis;
        sr_pose_pred_axis = hHeadTrackData.sr_pose_pred_axis;
    }
    else if ( hExtOrientationData != NULL )
    {
+1 −1
Original line number Diff line number Diff line
@@ -5058,7 +5058,7 @@ ivas_error IVAS_REND_CombineHeadAndExternalOrientation(
        return IVAS_ERR_UNEXPECTED_NULL_POINTER;
    }

    return combine_external_and_head_orientations_rend( &hIvasRend->headRotData, hIvasRend->hExternalOrientationData, hIvasRend->hCombinedOrientationData );
    return combine_external_and_head_orientations_rend( hIvasRend->headRotData, hIvasRend->hExternalOrientationData, hIvasRend->hCombinedOrientationData );
}