Commit c39b017a authored by norvell's avatar norvell
Browse files

Add fix for rendering for PEAQ to avoid conflict with renderer tests

parent ca1e1767
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -172,6 +172,7 @@ def run_renderer(
    in_file=None,
    out_file=None,
    sr=48,
    render_for_peaq=False,
) -> str:
    # prepare arguments and filepaths
    if trj_file is not None:
@@ -310,7 +311,7 @@ def run_renderer(
    # run the renderer
    run_cmd(cmd, env)

    if test_info.config.option.create_cut:
    if test_info.config.option.create_cut and not render_for_peaq:
        # CUT creation mode will run a comparison with REF
        out_file_ref = str(OUTPUT_PATH_REF.joinpath(out_file_stem))

@@ -515,6 +516,7 @@ def binauralize_input_and_output(
                in_file=dut_output_file,
                out_file=dut_output_file_binaural,
                sr=out_sr,
                render_for_peaq=True,
            )
            # Update output_config to rendered format
            output_config = output_reformat
@@ -549,6 +551,7 @@ def binauralize_input_and_output(
                in_file=input_file,
                out_file=ref_output_file_binaural,
                sr=in_sr,
                render_for_peaq=True,
            )
        else:
            ref_output_file_binaural = input_file