Loading tests/test_be_for_jbm_neutral_dly_profile.py +11 −7 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ TESTCASES = [ ["OSBA_ISM4_HOA2", 512000, "BINAURAL"], ] DLY_PROFILE = SCRIPTS_DIR.joinpath("dly_error_profiles/dly_error_profile_0.dat") JBM_NEUTRAL_DELAY_MS = 60 def get_options(in_format, bitrate): options = list() Loading Loading @@ -138,13 +138,17 @@ def test_be_for_jbm_neutral_dly_profile( # compare no-jbm and jbm output x, _ = audiofile.readfile(output) x_jbm, _ = audiofile.readfile(output_jbm) delay = x_jbm.shape[0] - x.shape[0] print(delay) print(x_jbm[delay:, :]) print(x_jbm[delay:, :].shape) # strip jbm delay delay_samples = JBM_NEUTRAL_DELAY_MS * sampling_rate_khz x_jbm = x_jbm[delay_samples:, :] # TODO: if #1122 results in the JBM output always being longer, # then this should be removed and a length check with failure otherwise added min_len = min(len(x), len(x_jbm)) cmp_result = audioarray.compare( x, x_jbm[delay:, :], x[:min_len, :], x_jbm[:min_len, :], fs=sampling_rate_khz * 1000, per_frame=False, ) Loading Loading
tests/test_be_for_jbm_neutral_dly_profile.py +11 −7 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ TESTCASES = [ ["OSBA_ISM4_HOA2", 512000, "BINAURAL"], ] DLY_PROFILE = SCRIPTS_DIR.joinpath("dly_error_profiles/dly_error_profile_0.dat") JBM_NEUTRAL_DELAY_MS = 60 def get_options(in_format, bitrate): options = list() Loading Loading @@ -138,13 +138,17 @@ def test_be_for_jbm_neutral_dly_profile( # compare no-jbm and jbm output x, _ = audiofile.readfile(output) x_jbm, _ = audiofile.readfile(output_jbm) delay = x_jbm.shape[0] - x.shape[0] print(delay) print(x_jbm[delay:, :]) print(x_jbm[delay:, :].shape) # strip jbm delay delay_samples = JBM_NEUTRAL_DELAY_MS * sampling_rate_khz x_jbm = x_jbm[delay_samples:, :] # TODO: if #1122 results in the JBM output always being longer, # then this should be removed and a length check with failure otherwise added min_len = min(len(x), len(x_jbm)) cmp_result = audioarray.compare( x, x_jbm[delay:, :], x[:min_len, :], x_jbm[:min_len, :], fs=sampling_rate_khz * 1000, per_frame=False, ) Loading