Commit e2f0ef93 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] split rendering pytest and MSVC warning

parent 1f5d0cf3
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 )
    {
+6 −12
Original line number Diff line number Diff line
@@ -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)}"
        )
+0 −1
Original line number Diff line number Diff line
@@ -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,
    )