Commit 38d9ee96 authored by Sumeyra Demir Kanik's avatar Sumeyra Demir Kanik
Browse files

Move TDREND_PLAY_STATUS update outside the subframe loop

parent 7c560c29
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -185,6 +185,7 @@

#define FIX_528_ISM_MD_FILE_TOO_SHORT                   /* VA: issue 528: ISM Metadata file too short  */

#define FIX_550_FIRST_FRAME_ACCESS                     /* Eri: Issue 550: TD Object renderer: first frame accesses wrong transport channel offsets */

                                                        /* ################## End DEVELOPMENT switches ######################### */
/* clang-format on */
+14 −0
Original line number Diff line number Diff line
@@ -296,6 +296,16 @@ ivas_error ivas_td_binaural_renderer_unwrap(
            hBinRendererTd->Sources[c_indx]->SrcRend_p->InputAvailable = TRUE;
            c_indx++;
        }
#ifdef FIX_550_FIRST_FRAME_ACCESS
        if (hIsmMetaData[nS]->non_diegetic_flag)
        {
            TDREND_MIX_SRC_SetPlayState(hBinRendererTd, nS, TDREND_PLAYSTATUS_PLAYING_NON_DIEGETIC);
        }
        else
        {
            TDREND_MIX_SRC_SetPlayState(hBinRendererTd, nS, TDREND_PLAYSTATUS_PLAYING);
        }
#endif
    }

    for ( subframe_idx = 0; subframe_idx < MAX_PARAM_SPATIAL_SUBFRAMES; subframe_idx++ )
@@ -489,11 +499,15 @@ void TDREND_Update_object_positions(
                Pos[1] = hIsmMetaData[nS]->azimuth / 90.f;
                Pos[2] = 0;
                TDREND_MIX_SRC_SetPos( hBinRendererTd, nS, Pos );
#ifndef FIX_550_FIRST_FRAME_ACCESS
                TDREND_MIX_SRC_SetPlayState( hBinRendererTd, nS, TDREND_PLAYSTATUS_PLAYING_NON_DIEGETIC );
#endif            
            }
            else
            {
#ifndef FIX_550_FIRST_FRAME_ACCESS
                TDREND_MIX_SRC_SetPlayState( hBinRendererTd, nS, TDREND_PLAYSTATUS_PLAYING );
#endif
            }
            TDREND_MIX_SRC_SetDir( hBinRendererTd, nS, Dir );
        }