Commit 4a499d0d authored by norvell's avatar norvell
Browse files

Merge branch 'ci/fix-rendering-tests-with-peaq-2' into 'main'

[BASOP CI] Fix for PEAQ renderer tests part 2

See merge request !1961
parents e2c89418 fe7ed743
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -143,6 +143,8 @@ if __name__ == "__main__":
            ax.set_title(fmt)
            ax.legend(loc="best")
            ax.set_xlabel(measure_label)
            if "DIFF" in measure_label:
                ax.set_xticks(range(len(limits_labels)), limits_labels, rotation=35)
            ax.set_ylabel("Number of test cases")

            fig.set_figheight(4)
+6 −2
Original line number Diff line number Diff line
@@ -325,12 +325,16 @@ def run_renderer(
            odg_ref = out_file_ref[0:-4] + ".BINAURAL.wav"

            if out_fmt not in PEAQ_SUPPORTED_FMT:
                    if in_fmt in PEAQ_SUPPORTED_FMT:
                        new_fmt = in_fmt # MONO or STEREO
                    else:
                        new_fmt = "BINAURAL"
                    # Render test to BINAURAL
                    cmd2 = RENDERER_CMD[:]
                    cmd2[2] = str(out_file)  # in_file
                    cmd2[4] = str(out_fmt)   # in_fmt
                    cmd2[6] = odg_test       # out_file
                    cmd2[8] = "BINAURAL"     # out_fmt
                    cmd2[8] = new_fmt        # out_fmt
                    cmd2[10] = str(sr)
                    cmd2[0] += BIN_SUFFIX_MERGETARGET # Use IVAS_rend_ref for re-rendering
                    cmd2[0] += binary_suffix
@@ -340,7 +344,7 @@ def run_renderer(
                    cmd2[2] = str(out_file_ref)  # in_file
                    cmd2[6] = odg_ref            # out_file
                    run_cmd(cmd2, env)
                    out_fmt_bin = "BINAURAL"
                    out_fmt_bin = new_fmt
            else:
                out_fmt_bin = out_fmt
                odg_test = out_file