Commit 5182c183 authored by norvell's avatar norvell
Browse files

Add fix for directivity pattern under FIX_463_TD_RENDERER_DIRECTIVITY_RESET

parent 65dcc842
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -215,6 +215,7 @@
#endif

#define COMPLEXITY_LEVEL_INDICATION
#define FIX_463_TD_RENDERER_DIRECTIVITY_RESET           /* Eri: Remove unintentional reset of directivity pattern */

/* ################## End DEVELOPMENT switches ######################### */
/* clang-format on */
+2 −0
Original line number Diff line number Diff line
@@ -435,10 +435,12 @@ void TDREND_Update_object_positions(
            /* Source position and direction */
            angles_to_vec( hIsmMetaData[nS]->radius, hIsmMetaData[nS]->azimuth, hIsmMetaData[nS]->elevation, Pos );
            angles_to_vec( 1.0f, hIsmMetaData[nS]->yaw, hIsmMetaData[nS]->pitch, Dir );
#ifndef FIX_463_TD_RENDERER_DIRECTIVITY_RESET
            /* Source directivity info */
            DirAtten_p->ConeInnerAngle = 360.0f;
            DirAtten_p->ConeOuterAngle = 360.0f;
            DirAtten_p->ConeOuterGain = 1.0f;
#endif

            TDREND_MIX_SRC_SetPos( hBinRendererTd, nS, Pos );
            TDREND_MIX_SRC_SetDirAtten( hBinRendererTd, nS, DirAtten_p );