Loading scripts/pyaudio3dtools/audioarray.py +3 −2 Original line number Diff line number Diff line Loading @@ -397,6 +397,7 @@ def compare( tmpfile_ref = Path(tmpdir).joinpath("ref.wav") tmpfile_test = Path(tmpdir).joinpath("test.wav") ### need to resample to 48kHz for MLD computation to be correct if fs != 48000: ref_tmp = np.clip( Loading @@ -409,8 +410,8 @@ def compare( ref_tmp = ref.copy() test_tmp = test.copy() wavfile.write(str(tmpfile_ref), fs, ref_tmp.astype(np.int16)) wavfile.write(str(tmpfile_test), fs, test_tmp.astype(np.int16)) wavfile.write(str(tmpfile_ref), 48000, ref_tmp.astype(np.int16)) wavfile.write(str(tmpfile_test), 48000, test_tmp.astype(np.int16)) cmd = [ str(wdiff), Loading Loading
scripts/pyaudio3dtools/audioarray.py +3 −2 Original line number Diff line number Diff line Loading @@ -397,6 +397,7 @@ def compare( tmpfile_ref = Path(tmpdir).joinpath("ref.wav") tmpfile_test = Path(tmpdir).joinpath("test.wav") ### need to resample to 48kHz for MLD computation to be correct if fs != 48000: ref_tmp = np.clip( Loading @@ -409,8 +410,8 @@ def compare( ref_tmp = ref.copy() test_tmp = test.copy() wavfile.write(str(tmpfile_ref), fs, ref_tmp.astype(np.int16)) wavfile.write(str(tmpfile_test), fs, test_tmp.astype(np.int16)) wavfile.write(str(tmpfile_ref), 48000, ref_tmp.astype(np.int16)) wavfile.write(str(tmpfile_test), 48000, test_tmp.astype(np.int16)) cmd = [ str(wdiff), Loading