Commit b152af5f authored by lefort's avatar lefort
Browse files

Merge branch 'fix_missing_hrtf_binary_in_fix_fix_i59' into 'main'

Fix missing code of HRTF_BINARY_FILE in the code portion wrapped by FIX_FIX_I59

See merge request !427
parents c3d2fff6 f7153034
Loading
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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 )