diff --git a/lib_rend/ivas_binauralRenderer.c b/lib_rend/ivas_binauralRenderer.c index d0eaa6407cbd7019f5c92a2486fb39fd7a2c7bfc..d5c92353ab08c109f66c9927ae7b75cff83230f5 100644 --- a/lib_rend/ivas_binauralRenderer.c +++ b/lib_rend/ivas_binauralRenderer.c @@ -694,17 +694,29 @@ ivas_error ivas_binRenderer_open( { if ( hBinRenderer->ivas_format == MC_FORMAT ) { +#ifdef HRTF_BINARY_FILE + st_ivas->binaural_latency_ns = (int32_t) ( st_ivas->hHrtfFastConv->FASTCONV_HRIR_latency_s * 1000000000.f ); +#else st_ivas->binaural_latency_ns = (int32_t) ( FASTCONV_HRIR_latency_s * 1000000000.f ); +#endif } else { +#ifdef HRTF_BINARY_FILE + st_ivas->binaural_latency_ns = (int32_t) ( st_ivas->hHrtfFastConv->FASTCONV_HOA3_latency_s * 1000000000.f ); +#else st_ivas->binaural_latency_ns = (int32_t) ( FASTCONV_HOA3_latency_s * 1000000000.f ); +#endif } } else { /* same value for MC or HOA both use MC BRIR*/ +#ifdef HRTF_BINARY_FILE + st_ivas->binaural_latency_ns = (int32_t) ( st_ivas->hHrtfFastConv->FASTCONV_BRIR_latency_s * 1000000000.f ); +#else st_ivas->binaural_latency_ns = (int32_t) ( FASTCONV_BRIR_latency_s * 1000000000.f ); +#endif } #else if ( hBinRenderer->ivas_format == MC_FORMAT )