From: Mark Wooding Date: Sat, 2 May 2020 18:56:06 +0000 (+0100) Subject: server/Makefile.am: Allow discrepancies for lossy codecs. X-Git-Tag: 5.2~4 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/a5ecf8c2c33ea8ca44bedccdef60eb7354102f66 server/Makefile.am: Allow discrepancies for lossy codecs. It seems that `libMAD' on ARM32 doesn't produce the same output as it does on x86; and the ARM64 version is a looooong way off. I've not investigated, but I suspect details of floating point and/or SIMD optimization. Anyway, smallish $L_\infty$ distance isn't especially concerning. After all, we're trying to make sure that we're using the decoders right, rather than that the decoders conform to the relevant specifications. --- diff --git a/server/Makefile.am b/server/Makefile.am index 2447485..42dc40b 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -141,7 +141,7 @@ check-decode: check-wav check-flac check-mp3 check-mp3: disorder-decode disorder-normalize ./disorder-decode ${top_srcdir}/sounds/scratch.mp3 | \ ./disorder-normalize --config ${srcdir}/test-config > mp3ed.raw - $(top_srcdir)/scripts/compare-raw 0 \ + $(top_srcdir)/scripts/compare-raw 64 \ mp3ed.raw ${top_srcdir}/sounds/scratch-mp3.raw rm -f mp3ed.raw @@ -150,7 +150,7 @@ check-mp3: disorder-decode disorder-normalize check-ogg: disorder-decode disorder-normalize ./disorder-decode ${top_srcdir}/sounds/scratch.ogg | \ ./disorder-normalize --config ${srcdir}/test-config > ogged.raw - $(top_srcdir)/scripts/compare-raw 0 \ + $(top_srcdir)/scripts/compare-raw 64 \ ogged.raw ${top_srcdir}/sounds/scratch.raw rm -f ogged.raw