Loading tests/test_be_for_jbm_neutral_dly_profile.py +20 −4 Original line number Original line Diff line number Diff line Loading @@ -155,7 +155,12 @@ def get_options_dec( options = [] options = [] if "BINAURAL_SPLIT" in output_format.upper(): if "BINAURAL_SPLIT" in output_format.upper(): options.extend(["-render_config", str(RENDER_CFG_DIR / "split_renderer_config_3dof_512k_default.txt")]) options.extend( [ "-render_config", str(RENDER_CFG_DIR / "split_renderer_config_3dof_512k_default.txt"), ] ) if output_format.upper() == "BINAURAL_SPLIT_PCM": if output_format.upper() == "BINAURAL_SPLIT_PCM": options.extend(["-om", str(output_file.with_suffix(".isarmd"))]) options.extend(["-om", str(output_file.with_suffix(".isarmd"))]) Loading Loading @@ -210,6 +215,7 @@ OUTPUT_FOLDER_IF_KEEP_FILES_NEUTRAL = OUTPUT_FOLDER_IF_KEEP_FILES.joinpath( "neutral-profile" "neutral-profile" ) ) def compare_audio(non_voip_output, voip_output, sampling_rate_khz): def compare_audio(non_voip_output, voip_output, sampling_rate_khz): # compare no-jbm and jbm output # compare no-jbm and jbm output x, _ = audiofile.readfile(non_voip_output) x, _ = audiofile.readfile(non_voip_output) Loading Loading @@ -237,6 +243,7 @@ def compare_isar_files(non_voip_isar, voip_isar): "Difference between no jbm and zero-delay jbm decoding found! ISAR files differ" "Difference between no jbm and zero-delay jbm decoding found! ISAR files differ" ) ) @pytest.mark.parametrize( @pytest.mark.parametrize( "in_format,bitrate,out_format", TESTCASES_NO_DTX + TESTCASES_WITH_DTX "in_format,bitrate,out_format", TESTCASES_NO_DTX + TESTCASES_WITH_DTX ) ) Loading @@ -249,6 +256,9 @@ def test_be_for_jbm_neutral_dly_profile_no_dtx( dut_postrend_frontend, dut_postrend_frontend, keep_files, keep_files, ): ): if out_format == "BINAURAL_SPLIT_CODED" or out_format == "BINAURAL_SPLIT_PCM": pytest.mark.skip(f"{out_format} skipped in BASOP until suported properly") run_test( run_test( in_format, in_format, bitrate, bitrate, Loading Loading @@ -354,7 +364,9 @@ def run_test( ) ) # run decoder with network simulation # run decoder with network simulation output_jbm = output_dir_neutral.joinpath(output.with_suffix(f".jbm-0.{output_ext}").name) output_jbm = output_dir_neutral.joinpath( output.with_suffix(f".jbm-0.{output_ext}").name ) voip_options = get_options_dec(out_format, output_jbm, is_voip=True) voip_options = get_options_dec(out_format, output_jbm, is_voip=True) dut_decoder_frontend.run( dut_decoder_frontend.run( out_format, out_format, Loading Loading @@ -386,7 +398,9 @@ def run_test( return return # Render non-voip output # Render non-voip output postrend_output = output_dir_no_jbm.joinpath(output.with_suffix(".postrend.wav").name) postrend_output = output_dir_no_jbm.joinpath( output.with_suffix(".postrend.wav").name ) dut_postrend_frontend.run( dut_postrend_frontend.run( sampling_rate_khz, sampling_rate_khz, output, output, Loading @@ -396,7 +410,9 @@ def run_test( ) ) # Render voip output # Render voip output postrend_output_voip = output_dir_neutral.joinpath(output_jbm.with_suffix(".postrend.wav").name) postrend_output_voip = output_dir_neutral.joinpath( output_jbm.with_suffix(".postrend.wav").name ) dut_postrend_frontend.run( dut_postrend_frontend.run( sampling_rate_khz, sampling_rate_khz, output_jbm, output_jbm, Loading Loading
tests/test_be_for_jbm_neutral_dly_profile.py +20 −4 Original line number Original line Diff line number Diff line Loading @@ -155,7 +155,12 @@ def get_options_dec( options = [] options = [] if "BINAURAL_SPLIT" in output_format.upper(): if "BINAURAL_SPLIT" in output_format.upper(): options.extend(["-render_config", str(RENDER_CFG_DIR / "split_renderer_config_3dof_512k_default.txt")]) options.extend( [ "-render_config", str(RENDER_CFG_DIR / "split_renderer_config_3dof_512k_default.txt"), ] ) if output_format.upper() == "BINAURAL_SPLIT_PCM": if output_format.upper() == "BINAURAL_SPLIT_PCM": options.extend(["-om", str(output_file.with_suffix(".isarmd"))]) options.extend(["-om", str(output_file.with_suffix(".isarmd"))]) Loading Loading @@ -210,6 +215,7 @@ OUTPUT_FOLDER_IF_KEEP_FILES_NEUTRAL = OUTPUT_FOLDER_IF_KEEP_FILES.joinpath( "neutral-profile" "neutral-profile" ) ) def compare_audio(non_voip_output, voip_output, sampling_rate_khz): def compare_audio(non_voip_output, voip_output, sampling_rate_khz): # compare no-jbm and jbm output # compare no-jbm and jbm output x, _ = audiofile.readfile(non_voip_output) x, _ = audiofile.readfile(non_voip_output) Loading Loading @@ -237,6 +243,7 @@ def compare_isar_files(non_voip_isar, voip_isar): "Difference between no jbm and zero-delay jbm decoding found! ISAR files differ" "Difference between no jbm and zero-delay jbm decoding found! ISAR files differ" ) ) @pytest.mark.parametrize( @pytest.mark.parametrize( "in_format,bitrate,out_format", TESTCASES_NO_DTX + TESTCASES_WITH_DTX "in_format,bitrate,out_format", TESTCASES_NO_DTX + TESTCASES_WITH_DTX ) ) Loading @@ -249,6 +256,9 @@ def test_be_for_jbm_neutral_dly_profile_no_dtx( dut_postrend_frontend, dut_postrend_frontend, keep_files, keep_files, ): ): if out_format == "BINAURAL_SPLIT_CODED" or out_format == "BINAURAL_SPLIT_PCM": pytest.mark.skip(f"{out_format} skipped in BASOP until suported properly") run_test( run_test( in_format, in_format, bitrate, bitrate, Loading Loading @@ -354,7 +364,9 @@ def run_test( ) ) # run decoder with network simulation # run decoder with network simulation output_jbm = output_dir_neutral.joinpath(output.with_suffix(f".jbm-0.{output_ext}").name) output_jbm = output_dir_neutral.joinpath( output.with_suffix(f".jbm-0.{output_ext}").name ) voip_options = get_options_dec(out_format, output_jbm, is_voip=True) voip_options = get_options_dec(out_format, output_jbm, is_voip=True) dut_decoder_frontend.run( dut_decoder_frontend.run( out_format, out_format, Loading Loading @@ -386,7 +398,9 @@ def run_test( return return # Render non-voip output # Render non-voip output postrend_output = output_dir_no_jbm.joinpath(output.with_suffix(".postrend.wav").name) postrend_output = output_dir_no_jbm.joinpath( output.with_suffix(".postrend.wav").name ) dut_postrend_frontend.run( dut_postrend_frontend.run( sampling_rate_khz, sampling_rate_khz, output, output, Loading @@ -396,7 +410,9 @@ def run_test( ) ) # Render voip output # Render voip output postrend_output_voip = output_dir_neutral.joinpath(output_jbm.with_suffix(".postrend.wav").name) postrend_output_voip = output_dir_neutral.joinpath( output_jbm.with_suffix(".postrend.wav").name ) dut_postrend_frontend.run( dut_postrend_frontend.run( sampling_rate_khz, sampling_rate_khz, output_jbm, output_jbm, Loading