Commit d8efbebb authored by hsd's avatar hsd
Browse files

[add] multichannel reference vector test condition

parent f1c7a0e5
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -221,6 +221,27 @@ def test_multichannel_binaural_headrotation(test_info, in_fmt, out_fmt, trj_file
            trj_file=HR_TRAJECTORY_DIR.joinpath(f"{trj_file}.csv"),
        )

# This test compares rendering with:
#   ref: a head rotation trajectory with elevation (OTR=NONE)
#   cut: a static head rotation and a reference position trajectory which moves
#        in a way that produces the same acoustic output as the ref head rot trajectory (OTR=REF_VEC)
@pytest.mark.parametrize("out_fmt", OUTPUT_FORMATS_BINAURAL)
@pytest.mark.parametrize("in_fmt", INPUT_FORMATS_MC)
def test_multichannel_binaural_headrotation_refvec_rotating(test_info, in_fmt, out_fmt):
    compare_renderer_args(
        test_info,
        in_fmt,
        out_fmt,
        ref_kwargs={
            "name_extension": "refvec_rotating",
            "trj_file": HR_TRAJECTORY_DIR.joinpath("full-circle-with-up-and-down-4s.csv"),
        },
        cut_kwargs={
            "trj_file": HR_TRAJECTORY_DIR.joinpath("const000.csv"),
            "refvec_file": HR_TRAJECTORY_DIR.joinpath("full-circle-with-up-and-down-4s-ccw-Vector3.csv")
        }
    )


""" ISM """