From 753820b079e5610ae9659a4502c5fa6277108732 Mon Sep 17 00:00:00 2001 From: Erik Norvell Date: Tue, 6 May 2025 15:09:17 +0200 Subject: [PATCH] Ensure int16 in wav-diff write-out --- scripts/pyaudio3dtools/audioarray.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/pyaudio3dtools/audioarray.py b/scripts/pyaudio3dtools/audioarray.py index f548622242..7ebc12e2b0 100644 --- a/scripts/pyaudio3dtools/audioarray.py +++ b/scripts/pyaudio3dtools/audioarray.py @@ -379,8 +379,8 @@ def compare( wavfile.write(str(tmpfile_test), 48000, test_tmp) del test_tmp else: - wavfile.write(str(tmpfile_ref), 48000, ref) - wavfile.write(str(tmpfile_test), 48000, test) + wavfile.write(str(tmpfile_ref), 48000, ref.astype(np.int16)) + wavfile.write(str(tmpfile_test), 48000, test.astype(np.int16)) cmd = [ str(wdiff), -- GitLab