Commit 1a1a050e authored by emerit's avatar emerit
Browse files

add new hrtf binary files for testing and fix scripts bugs

parent 51221781
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ from typing import Dict, Optional
import pytest

from tests.renderer.compare_audio import compare_audio_arrays
from tests.renderer.utils import check_BE, run_cmd, test_info, run_renderer
from tests.renderer.utils import check_BE, run_cmd, run_renderer, test_info

from .constants import *

@@ -320,7 +320,7 @@ def compare_rom_vs_binary(
    run_decoder(
        out_fmt, out_fs, bitstream_path, out_bin_path, add_option_list=option_list_dec
    )
    out_bin, out_bin_fs = pyaudio3dtools.audiofile.readfile(out_rom_path)
    out_bin, out_bin_fs = pyaudio3dtools.audiofile.readfile(out_bin_path)

    check_BE(test_info, out_rom, out_rom_fs, out_bin, out_bin_fs)
    if keep_file == False:
@@ -351,6 +351,7 @@ def compare_renderer_vs_renderer_with_binary_hrir(
    )
    hrtf_file_path = hrtf_file_dir.joinpath(hrir_name)
    ref_out = run_renderer(
        None,
        test_info,
        in_fmt,
        out_fmt,
@@ -366,6 +367,7 @@ def compare_renderer_vs_renderer_with_binary_hrir(
        frame_size=frame_size,
    )
    cut_out = run_renderer(
        None,
        test_info,
        in_fmt,
        out_fmt,
+3 −0
Original line number Diff line number Diff line
@@ -195,6 +195,9 @@ def run_renderer(
    if trj_file is not None:
        cmd.extend(["-T", str(trj_file)])

    if hrtf_file is not None:
        cmd.extend(["-hrtf", str(hrtf_file)])

    if non_diegetic_pan is not None:
        cmd.extend(["-non_diegetic_pan", str(non_diegetic_pan)])
    if refrot_file is not None: