Commit 474fe913 authored by BOHMRR's avatar BOHMRR
Browse files

pytest: added 24dB gain to agc test

parent b7965606
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -458,7 +458,8 @@ def test_spar_foa_enc_agc_system(
        agc,
        use_agc_ref,
        sba_order,
        update_ref
        update_ref,
        cut_gain="16.0"
    )

    # dec
@@ -499,7 +500,8 @@ def spar_foa_enc(
    use_agc_ref,
    sba_order,
    update_ref,
    in_extension = '.pcm'
    in_extension = '.pcm',
    cut_gain = '1.0'
):

    #########  run cmd   #####################################
@@ -538,8 +540,10 @@ def spar_foa_enc(
        num_channels = "4" # currently only FOA inputs end up, here
        cut_from = "0.0"
        cut_len = "5.0"
        cut_gain = "1.0"
        if cut_gain == "1.0":
            cut_file = f"{test_vector_path}/{tag_in}_cut{in_extension}"
        else:
            cut_file = f"{test_vector_path}/{tag_in}_cut_{cut_gain}{in_extension}"
        if not os.path.exists(cut_file):
            cut_samples(input_path, cut_file, num_channels, sampling_rate + "000", cut_from, cut_len, cut_gain)
        input_path = cut_file