Commit 6de960df authored by emerit's avatar emerit
Browse files

update to showing need for binaural latency

parent f951f598
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -96,9 +96,9 @@ int32_t get_delay(
            delay = IVAS_DEC_DELAY_NS;

#ifdef REVIEW_ORANGE // same fix as in main branch
            if ( hCldfb != NULL || renderer_type == RENDERER_BINAURAL_OBJECTS_TD )
#else
            if ( hCldfb != NULL )
#else
            if ( hCldfb != NULL || renderer_type == RENDERER_BINAURAL_OBJECTS_TD )
#endif
            {
                delay += IVAS_FB_DEC_DELAY_NS;
+4 −0
Original line number Diff line number Diff line
@@ -1055,7 +1055,11 @@ ivas_error IVAS_DEC_GetDelay(
    st_ivas = hIvasDec->st_ivas;
    hDecoderConfig = st_ivas->hDecoderConfig;

#ifdef REVIEW_ORANGE // like in main branch needed to illustrate no zero binaural latency value
    *nSamples = (int16_t) roundf( (float) get_delay( DEC, hDecoderConfig->output_Fs, st_ivas->ivas_format, st_ivas->cldfbAnaDec[0], st_ivas->renderer_type, st_ivas->binaural_latency_ns ) * hDecoderConfig->output_Fs / 1000000000.f );
#else
    *nSamples = NS2SA( hDecoderConfig->output_Fs, get_delay( DEC, hDecoderConfig->output_Fs, st_ivas->ivas_format, st_ivas->cldfbAnaDec[0], st_ivas->renderer_type, st_ivas->binaural_latency_ns ) );
#endif

    *timeScale = hDecoderConfig->output_Fs;