From f71530343ed66c2e316d75b749c57922cbf26cd3 Mon Sep 17 00:00:00 2001 From: Arnaud LEFORT Date: Tue, 7 Feb 2023 15:52:21 +0100 Subject: [PATCH] fix missing code of HRTF_BINARY_FILE in the code portion wrapped by FIX_FIX_I59 --- lib_rend/ivas_binauralRenderer.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib_rend/ivas_binauralRenderer.c b/lib_rend/ivas_binauralRenderer.c index d0eaa6407c..d5c92353ab 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 ) -- GitLab