Loading tests/split_rendering/test_voip_be_splitrend_vs_binaural.py +9 −6 Original line number Diff line number Diff line Loading @@ -102,7 +102,7 @@ def test_voip_be_splitrend_vs_binaural( ).absolute() trace_out = wav_out.with_suffix(".trace") options.extend(["-Tracefile", str(trace_out)]) options.extend(["-Tracefile", str(trace_out), "-no_delay_cmp"]) if out_format == "BINAURAL_SPLIT_PCM": isar_md_file = wav_out.with_suffix(".isarmd") Loading @@ -124,13 +124,16 @@ def test_voip_be_splitrend_vs_binaural( wav_out_bin, trace_out_bin, _ = run_decoder("BINAURAL") wav_out_sr, trace_out_sr, isar_md_out_sr = run_decoder("BINAURAL_SPLIT_PCM") # Delay-align audio assert isar_md_out_sr is not None sr_delay_samples = IsarBitstream(isar_md_out_sr).delay_samples # Note regarding delay alignment: both output audio files contain the same decoder delay. # # - When outputting to BINAURAL with -no_delay_cmp, decoder delay is present in the audio # output, as expected. # # - When outputting to BINAURAL_SPLIT_PCM, decoder delay is never compensated in output # audio (irrespective of the -no_delay_cmp flag). The delay value is saved in the ISAR # metadata file and compensated at the post-rendering stage. audio_sr, _ = audiofile.readfile(str(wav_out_sr)) audio_bin, _ = audiofile.readfile(str(wav_out_bin)) audio_sr = audio_sr[sr_delay_samples:] audio_bin = audio_bin[:-sr_delay_samples] # Ensure audio and tracefiles are BE audio_cmp_result = audioarray.compare( Loading Loading
tests/split_rendering/test_voip_be_splitrend_vs_binaural.py +9 −6 Original line number Diff line number Diff line Loading @@ -102,7 +102,7 @@ def test_voip_be_splitrend_vs_binaural( ).absolute() trace_out = wav_out.with_suffix(".trace") options.extend(["-Tracefile", str(trace_out)]) options.extend(["-Tracefile", str(trace_out), "-no_delay_cmp"]) if out_format == "BINAURAL_SPLIT_PCM": isar_md_file = wav_out.with_suffix(".isarmd") Loading @@ -124,13 +124,16 @@ def test_voip_be_splitrend_vs_binaural( wav_out_bin, trace_out_bin, _ = run_decoder("BINAURAL") wav_out_sr, trace_out_sr, isar_md_out_sr = run_decoder("BINAURAL_SPLIT_PCM") # Delay-align audio assert isar_md_out_sr is not None sr_delay_samples = IsarBitstream(isar_md_out_sr).delay_samples # Note regarding delay alignment: both output audio files contain the same decoder delay. # # - When outputting to BINAURAL with -no_delay_cmp, decoder delay is present in the audio # output, as expected. # # - When outputting to BINAURAL_SPLIT_PCM, decoder delay is never compensated in output # audio (irrespective of the -no_delay_cmp flag). The delay value is saved in the ISAR # metadata file and compensated at the post-rendering stage. audio_sr, _ = audiofile.readfile(str(wav_out_sr)) audio_bin, _ = audiofile.readfile(str(wav_out_bin)) audio_sr = audio_sr[sr_delay_samples:] audio_bin = audio_bin[:-sr_delay_samples] # Ensure audio and tracefiles are BE audio_cmp_result = audioarray.compare( Loading