Commit 0b0300f8 authored by norvell's avatar norvell
Browse files

Fixes for EVS mono

parent f4be89fe
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -465,9 +465,12 @@ def test_param_file_tests(
        n_obj = len(in_meta_files)
        if n_obj > 0 and output_config == "EXT":
            out_meta_files = [f"{dut_output_file}.{i}.csv" for i in range(0,n_obj)]
            output_config = in_fmt # For EXT, output format is the same as the input format
        else:
            out_meta_files = None
        if output_config == "EXT":
            output_config = in_fmt
        if output_config == "":
            output_config = "MONO" # EVS mono
        metadata_input = None # Todo: This can be used for OMASA/OSBA rendering
        trj_file = findstr(r'-t\s+(\S+)', dec_opts)
        non_diegetic_pan = findstr(r'-non_diegetic_pan\s+(\S+)', dec_opts)
@@ -488,7 +491,7 @@ def test_param_file_tests(


        if not output_config in PEAQ_SUPPORTED_FMT:
            # Render output
            # Render output to BINAURAL
            output_reformat = "BINAURAL"

            check_and_makedir(str(Path(dut_output_file_binaural).parent))
@@ -516,14 +519,14 @@ def test_param_file_tests(
                out_file=dut_output_file_binaural,
                sr=out_sr,
            )
            # Update output_config to rendered format
            output_config = output_reformat
            # Use binauralized file for comparison
            dut_output_file = dut_output_file_binaural

        if not in_fmt in PEAQ_SUPPORTED_FMT or in_fmt != output_config:
            # Render input
        if in_fmt != output_config:
            # Render input to match output_config
            out_fmt = output_config
            if not out_fmt in PEAQ_SUPPORTED_FMT:
                out_fmt = "BINAURAL"
            
            check_and_makedir(str(Path(ref_output_file_binaural).parent))