Loading tests/hrtf_binary_loading/test_codec_ROM_vs_file.py +11 −14 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ the United Nations Convention on Contracts on the International Sales of Goods. """ import pytest import itertools from tests.hrtf_binary_loading.utils import * Loading @@ -47,12 +48,11 @@ def test_binary_file(test_info, hrtf_tag, out_fs): """ Multichannel """ @pytest.mark.parametrize("out_fmt", OUTPUT_FORMATS_BINAURAL[:-1]) @pytest.mark.parametrize("out_fs", SAMPLE_RATE) @pytest.mark.parametrize("in_fmt", INPUT_FORMATS_MC) @pytest.mark.parametrize("hrtf_tag", HRTF_TAGS) def test_multichannel_binaural_static(test_info, in_fmt, out_fmt, out_fs, hrtf_tag): bitrate = MC_BITRATE_FOR_FORMAT[in_fmt] @pytest.mark.parametrize( ("hrtf_tag", "in_fmt", "bitrate", "out_fs", "out_fmt"), [ ( x[0], x[1], MC_BITRATE_FOR_FORMAT[x[1]], x[2], x[3] ) for x in itertools.product(HRTF_TAGS, INPUT_FORMATS_MC, SAMPLE_RATE, OUTPUT_FORMATS_BINAURAL[:-1]) ] ) def test_multichannel_binaural_static(test_info, in_fmt, out_fmt, out_fs, hrtf_tag, bitrate): in_fs = 48 option_list = ["-mc", in_fmt] in_file = FORMAT_TO_FILE_MC_WOEXT[in_fmt].format(in_fs) Loading @@ -68,16 +68,13 @@ def test_multichannel_binaural_static(test_info, in_fmt, out_fmt, out_fs, hrtf_t hrtf_tag, ) @pytest.mark.parametrize("trj_file", [HR_TRAJECTORIES_TO_TEST[0]]) @pytest.mark.parametrize("out_fmt", OUTPUT_FORMATS_BINAURAL[:-1]) @pytest.mark.parametrize("out_fs", SAMPLE_RATE) @pytest.mark.parametrize("in_fmt", INPUT_FORMATS_MC) @pytest.mark.parametrize("hrtf_tag", HRTF_TAGS) @pytest.mark.parametrize( ("hrtf_tag", "in_fmt", "bitrate", "out_fs", "out_fmt", "trj_file"), [ ( x[0], x[1], MC_BITRATE_FOR_FORMAT[x[1]], x[2], x[3], x[4] ) for x in itertools.product(HRTF_TAGS, INPUT_FORMATS_MC, SAMPLE_RATE, OUTPUT_FORMATS_BINAURAL[:-1], [HR_TRAJECTORIES_TO_TEST[0]]) ] ) def test_multichannel_binaural_headrotation( test_info, in_fmt, out_fmt, out_fs, trj_file, hrtf_tag test_info, in_fmt, out_fmt, out_fs, trj_file, hrtf_tag, bitrate ): bitrate = MC_BITRATE_FOR_FORMAT[in_fmt] in_fs = 48 option_list = ["-mc", in_fmt] in_file = FORMAT_TO_FILE_MC_WOEXT[in_fmt].format(in_fs) Loading Loading
tests/hrtf_binary_loading/test_codec_ROM_vs_file.py +11 −14 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ the United Nations Convention on Contracts on the International Sales of Goods. """ import pytest import itertools from tests.hrtf_binary_loading.utils import * Loading @@ -47,12 +48,11 @@ def test_binary_file(test_info, hrtf_tag, out_fs): """ Multichannel """ @pytest.mark.parametrize("out_fmt", OUTPUT_FORMATS_BINAURAL[:-1]) @pytest.mark.parametrize("out_fs", SAMPLE_RATE) @pytest.mark.parametrize("in_fmt", INPUT_FORMATS_MC) @pytest.mark.parametrize("hrtf_tag", HRTF_TAGS) def test_multichannel_binaural_static(test_info, in_fmt, out_fmt, out_fs, hrtf_tag): bitrate = MC_BITRATE_FOR_FORMAT[in_fmt] @pytest.mark.parametrize( ("hrtf_tag", "in_fmt", "bitrate", "out_fs", "out_fmt"), [ ( x[0], x[1], MC_BITRATE_FOR_FORMAT[x[1]], x[2], x[3] ) for x in itertools.product(HRTF_TAGS, INPUT_FORMATS_MC, SAMPLE_RATE, OUTPUT_FORMATS_BINAURAL[:-1]) ] ) def test_multichannel_binaural_static(test_info, in_fmt, out_fmt, out_fs, hrtf_tag, bitrate): in_fs = 48 option_list = ["-mc", in_fmt] in_file = FORMAT_TO_FILE_MC_WOEXT[in_fmt].format(in_fs) Loading @@ -68,16 +68,13 @@ def test_multichannel_binaural_static(test_info, in_fmt, out_fmt, out_fs, hrtf_t hrtf_tag, ) @pytest.mark.parametrize("trj_file", [HR_TRAJECTORIES_TO_TEST[0]]) @pytest.mark.parametrize("out_fmt", OUTPUT_FORMATS_BINAURAL[:-1]) @pytest.mark.parametrize("out_fs", SAMPLE_RATE) @pytest.mark.parametrize("in_fmt", INPUT_FORMATS_MC) @pytest.mark.parametrize("hrtf_tag", HRTF_TAGS) @pytest.mark.parametrize( ("hrtf_tag", "in_fmt", "bitrate", "out_fs", "out_fmt", "trj_file"), [ ( x[0], x[1], MC_BITRATE_FOR_FORMAT[x[1]], x[2], x[3], x[4] ) for x in itertools.product(HRTF_TAGS, INPUT_FORMATS_MC, SAMPLE_RATE, OUTPUT_FORMATS_BINAURAL[:-1], [HR_TRAJECTORIES_TO_TEST[0]]) ] ) def test_multichannel_binaural_headrotation( test_info, in_fmt, out_fmt, out_fs, trj_file, hrtf_tag test_info, in_fmt, out_fmt, out_fs, trj_file, hrtf_tag, bitrate ): bitrate = MC_BITRATE_FOR_FORMAT[in_fmt] in_fs = 48 option_list = ["-mc", in_fmt] in_file = FORMAT_TO_FILE_MC_WOEXT[in_fmt].format(in_fs) Loading