Commit af0f9d5b authored by norvell's avatar norvell
Browse files

Fix missing get_mld_lim

parent b4b4c542
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -203,7 +203,7 @@ def test_masa_enc_dec(

            # Compare audio outputs
            pcmcmp_res, reason = cmp_pcm(
                dec_output_dut, dec_output_ref, output_mode, int(out_fs * 1000), get_mld=get_mld
                dec_output_dut, dec_output_ref, output_mode, int(out_fs * 1000), get_mld=get_mld, mld_lim=get_mld_lim
            )
            if get_mld:
                mld = 0
@@ -226,7 +226,7 @@ def test_masa_enc_dec(
            filecmp_res = cmp(dec_output_ref, dec_output_dut)
            if filecmp_res == False:
                cmp_result, reason = cmp_pcm(
                    dec_output_dut, dec_output_ref, output_mode, int(out_fs * 1000), get_mld=get_mld
                    dec_output_dut, dec_output_ref, output_mode, int(out_fs * 1000), get_mld=get_mld, mld_lim=get_mld_lim
                )
                if get_mld:
                    mld = 0
+3 −1
Original line number Diff line number Diff line
@@ -122,6 +122,7 @@ def test_sba_plc_system(
        gain_flag,
        keep_files,
        get_mld=get_mld,
        get_mld_lim=get_mld_lim,
    )


@@ -143,6 +144,7 @@ def sba_dec_plc(
    gain_flag,
    keep_files,
    get_mld=False,
    get_mld_lim=0,
):

    # ------------  run cmd  ------------
@@ -193,7 +195,7 @@ def sba_dec_plc(

        # --------------  compare cmd  --------------
        fs = int(sampling_rate) * 1000
        cmp_result, reason = cmp_pcm(dut_out_raw, ref_out_raw, output_config, fs, get_mld=get_mld)
        cmp_result, reason = cmp_pcm(dut_out_raw, ref_out_raw, output_config, fs, get_mld=get_mld, mld_lim=get_mld_lim)
        if get_mld:
            mld = 0
            if "MLD" in reason:
+5 −1
Original line number Diff line number Diff line
@@ -151,6 +151,7 @@ def test_pca_enc(
        gain_flag,
        keep_files,
        get_mld=get_mld,
        get_mld_lim=get_mld_lim,
        pca=pca,
    )

@@ -246,6 +247,7 @@ def test_sba_enc_system(
        gain_flag,
        keep_files,
        get_mld=get_mld
        get_mld_lim=get_mld_lim
    )


@@ -311,6 +313,7 @@ def test_spar_hoa2_enc_system(
        gain_flag,
        keep_files,
        get_mld=get_mld,
        get_mld_lim=get_mld_lim,
    )


@@ -613,6 +616,7 @@ def sba_dec(
    gain_flag,
    keep_files,
    get_mld=False,
    get_mld_lim=0,
    pca=False,
):
    # --------  run cmd  ------------
@@ -667,7 +671,7 @@ def sba_dec(
        )

        fs = int(sampling_rate) * 1000
        cmp_result, reason = cmp_pcm(dut_out_raw, ref_out_raw, output_config, fs, get_mld=get_mld)
        cmp_result, reason = cmp_pcm(dut_out_raw, ref_out_raw, output_config, fs, get_mld=get_mld, mld_lim=get_mld_lim )
        if get_mld:
            mld = 0
            if "MLD" in reason: