Loading lib_rend/ivas_objectRenderer.c +2 −2 Original line number Diff line number Diff line Loading @@ -814,7 +814,7 @@ ivas_error ivas_td_binaural_renderer_ext( ism_md_subframe_update_ext, p_output, output_frame #ifdef API_5MS , ( output_frame * FRAMES_PER_SEC * MAX_PARAM_SPATIAL_SUBFRAMES ) / output_Fs (int16_t) ( ( output_frame * FRAMES_PER_SEC * MAX_PARAM_SPATIAL_SUBFRAMES ) / output_Fs ) #endif ) ) != IVAS_ERR_OK ) { Loading tests/renderer/utils.py +6 −12 Original line number Diff line number Diff line Loading @@ -82,19 +82,13 @@ def check_BE( if np.isnan(snr) or gain_b == 0: pytest.fail("Invalid comparison result, check your signals!") snr_min = np.inf # TODO temporary fix to pad TD Object Renderer Standalone output if ref.shape != cut.shape: if ref.shape[0] < cut.shape[0]: ref = np.pad(ref, [(0, cut.shape[0] - ref.shape[0]), (0, 0)]) elif ref.shape[0] > cut.shape[0]: cut = np.pad(cut, [(0, ref.shape[0] - cut.shape[0]), (0, 0)]) # check max_diff as well, since compare_audio_arrays will try to adjust for small delay differences if not np.allclose(ref, cut, rtol=0, atol=2) and max_diff > 2: if snr >= snr_min: pytest.xfail( f"Expected failure with minimum SNR {snr_min} vs {snr:3.2f}dB, Gain CuT: {gain_b:1.3f}, Max Diff = {int(max_diff)}" ) else: pytest.fail( f"CuT not BE to REF! SNR : {snr:3.2f} dB, Gain CuT: {gain_b:1.3f}, Max Diff = {int(max_diff)}" ) Loading tests/split_rendering/test_split_rendering_be_comparison.py +0 −1 Original line number Diff line number Diff line Loading @@ -200,7 +200,6 @@ def test_masa_external_split(test_info, in_fmt, render_config, trajectory): render_config=RENDER_CFG_DIR.joinpath(f"{render_config}.txt"), pre_trajectory=pre_trajectory, post_trajectory=post_trajectory, output_path_base=OUTPUT_PATH_CUT, ) Loading Loading
lib_rend/ivas_objectRenderer.c +2 −2 Original line number Diff line number Diff line Loading @@ -814,7 +814,7 @@ ivas_error ivas_td_binaural_renderer_ext( ism_md_subframe_update_ext, p_output, output_frame #ifdef API_5MS , ( output_frame * FRAMES_PER_SEC * MAX_PARAM_SPATIAL_SUBFRAMES ) / output_Fs (int16_t) ( ( output_frame * FRAMES_PER_SEC * MAX_PARAM_SPATIAL_SUBFRAMES ) / output_Fs ) #endif ) ) != IVAS_ERR_OK ) { Loading
tests/renderer/utils.py +6 −12 Original line number Diff line number Diff line Loading @@ -82,19 +82,13 @@ def check_BE( if np.isnan(snr) or gain_b == 0: pytest.fail("Invalid comparison result, check your signals!") snr_min = np.inf # TODO temporary fix to pad TD Object Renderer Standalone output if ref.shape != cut.shape: if ref.shape[0] < cut.shape[0]: ref = np.pad(ref, [(0, cut.shape[0] - ref.shape[0]), (0, 0)]) elif ref.shape[0] > cut.shape[0]: cut = np.pad(cut, [(0, ref.shape[0] - cut.shape[0]), (0, 0)]) # check max_diff as well, since compare_audio_arrays will try to adjust for small delay differences if not np.allclose(ref, cut, rtol=0, atol=2) and max_diff > 2: if snr >= snr_min: pytest.xfail( f"Expected failure with minimum SNR {snr_min} vs {snr:3.2f}dB, Gain CuT: {gain_b:1.3f}, Max Diff = {int(max_diff)}" ) else: pytest.fail( f"CuT not BE to REF! SNR : {snr:3.2f} dB, Gain CuT: {gain_b:1.3f}, Max Diff = {int(max_diff)}" ) Loading
tests/split_rendering/test_split_rendering_be_comparison.py +0 −1 Original line number Diff line number Diff line Loading @@ -200,7 +200,6 @@ def test_masa_external_split(test_info, in_fmt, render_config, trajectory): render_config=RENDER_CFG_DIR.joinpath(f"{render_config}.txt"), pre_trajectory=pre_trajectory, post_trajectory=post_trajectory, output_path_base=OUTPUT_PATH_CUT, ) Loading