From fc4ba2f3df4484c4a0d0a30bc7eb1f6108d7fe08 Mon Sep 17 00:00:00 2001 From: knj Date: Mon, 19 Dec 2022 11:07:58 +0100 Subject: [PATCH] fix build of crend unittest on windows --- .../tests/unit_tests/crend/ivas_crend_utest_utils.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/ivas_pytests/tests/unit_tests/crend/ivas_crend_utest_utils.c b/scripts/ivas_pytests/tests/unit_tests/crend/ivas_crend_utest_utils.c index c8772f7ec1..f58454cbdf 100644 --- a/scripts/ivas_pytests/tests/unit_tests/crend/ivas_crend_utest_utils.c +++ b/scripts/ivas_pytests/tests/unit_tests/crend/ivas_crend_utest_utils.c @@ -1170,11 +1170,14 @@ ivas_result_t ivas_common_mixer_renderer( ivas_crend_io_params_t *pIo_params, fl } #endif /* test rounding error */ - float binaural_latencys_fastconv_s[3] = { FASTCONV_HRIR_latency_s, FASTCONV_BRIR_latency_s, FASTCONV_BRIR_latency_s }; + float binaural_latencys_fastconv_s[3]; float binaural_latencys_crend_s[3] = { 1.f / 48000.f, 2.f / 48000.f, 3.f / 48000.f }; float binaural_latencys_td_s[3] = { BINAURAL_TD_LATENCY_S, BINAURAL_TD_LATENCY_S + 1.f / 48000.f, BINAURAL_TD_LATENCY_S + 2.f / 48000.f }; int32_t err = 0, err_lfe = 0, err_dec = 0; + binaural_latencys_fastconv_s[0] = FASTCONV_HRIR_latency_s; + binaural_latencys_fastconv_s[1] = FASTCONV_BRIR_latency_s; + binaural_latencys_fastconv_s[2] = FASTCONV_BRIR_latency_s; err = ivas_check_rounding( binaural_latencys_fastconv_s, 0, 0, &err_lfe, &err_dec, 0 ); #ifdef FIX_I59_CREND printf( "\nerr_lfe = %d err_dec = %d", err_lfe, err_dec ); -- GitLab