third_party_libsnd/tests
Arthur Taylor 81a71e08c0 Fix lossy_comp_test sdlcomp_test_(float|double) for Vorbis (#426)
While experimenting, determined that Vobis' analysis stops working on
non-normalized floating point input outside the range of [2000.0, -2000.0], and
seems to get worse the larger the magnitude. As the sdlcomp_test_float and
sldcomp_test_double tests work with non-normalized floats with a magnitude of
32000.0, this explains why they do not work for Vorbis.

This patch fixes the test by reducing the magnitude of the test data at encode
and restoring it at decode if it detects Vorbis, mantaining the same 32000.0
overall magnitude so the envelope values for the test are the same as they are
for other tests and format.

It is unknown at this time if the input range magnitude of 2000.0 is  a
limitation of Vorbis or libvorbis.
2018-10-11 09:26:56 +11:00
..
aiff_rw_test.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
alaw_test.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
benchmark-0.0.28 First snapshot of the public project. 2007-05-14 19:55:24 +10:00
benchmark-1.0.0 First snapshot of the public project. 2007-05-14 19:55:24 +10:00
benchmark-1.0.0rc2 First snapshot of the public project. 2007-05-14 19:55:24 +10:00
benchmark-1.0.6pre10-coltrane First snapshot of the public project. 2007-05-14 19:55:24 +10:00
benchmark-1.0.6pre10-miles First snapshot of the public project. 2007-05-14 19:55:24 +10:00
benchmark-1.0.18pre16-hendrix Add two benchmark results for current version. 2007-09-12 21:51:44 +10:00
benchmark-1.0.18pre16-mingus Add two benchmark results for current version. 2007-09-12 21:51:44 +10:00
benchmark-latest-coltrane First snapshot of the public project. 2007-05-14 19:55:24 +10:00
benchmark.def More whitespace and cstyle fixes. 2012-01-21 14:24:38 +11:00
benchmark.tpl More whitespace and cstyle fixes. 2012-01-21 14:24:38 +11:00
channel_test.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
checksum_test.c Fix MSAN errors 2017-05-04 18:42:24 +10:00
chunk_test.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
command_test.c src/wav.c: Fix WAV Sampler Chunk tune parsing 2018-04-29 12:13:42 +10:00
compression_size_test.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
cpp_test.cc tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
dft_cmp.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
dft_cmp.h tests: Improvements to floating point tests 2015-10-19 12:41:50 +11:00
dither_test.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
dwvw_test.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
error_test.c tests/error_test.c: Add unrecognised file test 2018-03-17 13:05:25 +11:00
external_libs_test.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
fix_this.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
floating_point_test.def tests/(floating_point|scale_clip)_test.def : Quote hex literals. 2014-06-30 18:32:14 +10:00
floating_point_test.tpl Fix MSAN errors 2017-05-04 18:42:24 +10:00
format_check_test.c Fix MSAN errors 2017-05-04 18:42:24 +10:00
generate.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
generate.h Update copyright dates. 2011-01-19 21:36:56 +11:00
header_test.def *.(def|tpl) : Remove arch-tag comments from end of files. 2007-06-09 21:40:30 +10:00
header_test.tpl tests/header_test.tpl: Fix a memory leak 2017-10-26 19:21:06 +11:00
headerless_test.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
largefile_test.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
locale_test.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
long_read_write_test.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
lossy_comp_test.c Fix lossy_comp_test sdlcomp_test_(float|double) for Vorbis (#426) 2018-10-11 09:26:56 +11:00
misc_test.c RF64 tweaks 2017-04-18 20:07:10 +10:00
multi_file_test.c tests/ : Fix all printf format warnings. 2012-02-18 12:59:32 +11:00
ogg_test.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
pcm_test.def tests/ : Fix undefined behaviour warnings. 2014-12-16 13:21:19 +11:00
pcm_test.tpl tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
peak_chunk_test.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
pedantic-header-test.sh.in Fix out-of-tree building 2018-04-21 09:23:25 +10:00
pipe_test.def *.(def|tpl) : Remove arch-tag comments from end of files. 2007-06-09 21:40:30 +10:00
pipe_test.tpl Make build system completely non-recursive 2017-09-26 19:35:56 +10:00
raw_test.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
rdwr_test.def tests/rdwr_test.(def|tpl) : Add new test program and hook into build. 2010-02-28 13:52:11 +11:00
rdwr_test.tpl Whitespace and cstyle fixes. 2012-01-20 22:46:13 +11:00
scale_clip_test.def tests/(floating_point|scale_clip)_test.def : Quote hex literals. 2014-06-30 18:32:14 +10:00
scale_clip_test.tpl tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
sftest.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
sfversion.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
stdin_test.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
stdio_test.c Make build system completely non-recursive 2017-09-26 19:35:56 +10:00
stdout_test.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
string_test.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
test_wrapper.sh.in Make git checkout buildable out-of-tree 2017-10-08 18:23:58 +11:00
ulaw_test.c tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00
utils.def tests/utils.(def|tpl) : Add compare_XXX_or_die functions. 2007-12-14 20:41:33 +11:00
utils.tpl A couple of minor cstyle fixes 2017-10-01 16:33:41 +11:00
virtual_io_test.c tests/vrtual_io_test.c: Fix typo 2018-09-20 07:13:50 +10:00
win32_ordinal_test.c Remove redundant libsndfile.def.in 2017-10-31 18:42:40 +11:00
win32_test.c Fix a bunch of compiler warnings with gcc-4.6. 2011-03-28 18:43:05 +11:00
write_read_test.def tests/ : Add tests for 20 and 24 bit ALAC/CAF files. 2012-03-10 10:59:15 +11:00
write_read_test.tpl tests: Fixes for MSVC 2017-04-14 13:03:27 +10:00