Commit Graph

62 Commits

Author SHA1 Message Date
Arthur Taylor
64ce116687 Fix command_test Subformat count 2021-03-25 10:26:15 -07:00
evpobr
4ff3b84eff msvc: Fix annoying conversion warnings #304 2021-03-06 11:41:47 +05:00
bobsayshilol
aa3346cc6e
tests: Make temporary filenames unique per test (#704)
When two tests share a temporary filename they can cause ctest to fail
when run in parallel mode since both would attempt to operate on the
same file if scheduled to run at the same time.

To fix this, filenames in the smaller tests have been individually
renamed, and for the bigger tests a prefix has been added to make them
unique.

The complete list of conflicting filenames (which were then manually
inspected) was generated by running the following command in 'tests':

    for file in $(grep -hoER \"\\w+\\.\\w+\" | sort | uniq -d)
        do echo $file
        grep -Rn $file
        echo
    done | less
2021-02-21 11:11:34 +01:00
Moonbase59
3a57ea117b Add BWF v2 loudness parameters
Closes: https://github.com/erikd/libsndfile/issues/479
2019-08-27 07:28:25 +10:00
evpobr
22c2fa64c2 tests/command_test.c: Fix format specifiers
Closes: #472
2019-07-02 20:59:35 +10:00
Erik de Castro Lopo
bef2abc9e8 tests/command_test.c: Fix ASAN test failure 2019-01-02 12:24:21 +11:00
Erik de Castro Lopo
ba8a7577c6
Add support for more than 1000 cue points in WAV and AIFF files (#434)
This work was originally submitted by Diemo Schwarz <schwarz@ircam.fr> in
PR https://github.com/erikd/libsndfile/pull/197 which was rebased and
cleaned up.

Closes: https://github.com/erikd/libsndfile/pull/197
2018-12-23 20:32:56 +11:00
Michael Panzlaff
7ea3f9d874 src/wav.c: Fix WAV Sampler Chunk tune parsing
Fix parsing of instrument fine tuning instrument field. There is still
a possible rounding error involved which might require further
investigation at some stage.

Update the test as well.
2018-04-29 12:13:42 +10:00
Erik de Castro Lopo
9923b2a0a2 src/aiff.c: Remove INST chunk writing
This code had egregious errors in the way things were being passed
to psf_binheader_writef and neither the compiler nor the tests
caught it. It was however found when adding safety macros to enforce
correct type being passed to psf_binheader_writef.
2017-05-16 21:03:22 +10:00
Erik de Castro Lopo
b506de463d Fix MSAN errors
Fix multiple errors uncovered by Clang's Memory Sanitizer.

Closes: https://github.com/erikd/libsndfile/issues/248
2017-05-04 18:42:24 +10:00
evpobr
58737ceb48 tests: Fixes for MSVC
* src/test_main.c: Fix undeclared off_t type with MSVC
* tests/misc_test.c: Fix undefined S_ISCHR & S_ISBLK with MSVC
* tests/stdin_test.c: Fix undefined STDIN_FILENO with MSVC
* tests/win32_ordinal_test.c: Fix undeclared getcwd() with MSVC
* Fix missing unistd.h under Win32

Related: https://github.com/erikd/libsndfile/issues/154
2017-04-14 13:03:27 +10:00
Erik de Castro Lopo
7b7e0d913b SF_CUES: Fix for big-endian CPUs 2016-04-15 22:27:08 +10:00
Erik de Castro Lopo
9ea30b4c19 Add SFC_GET_CUE_COUNT command
This allows retrieval of the cue marker count before retrieval.
2016-04-15 21:11:40 +10:00
Erik de Castro Lopo
eeae9a0ddc Cues: Rename SF_CUES fields 2016-04-11 19:55:10 +10:00
Lars Palo
b0ab4e6bee Updates to original patch
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2016-04-11 19:55:10 +10:00
Lars Palo
f36189554b Added tests for cues
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2016-04-11 19:55:10 +10:00
Erik de Castro Lopo
21c3175420 src/command.c : Fix calculations of siganl max with odd channel numbers.
Also add a test for this.

Closes: https://github.com/erikd/libsndfile/issues/58
2014-03-01 20:28:50 +11:00
Erik de Castro Lopo
1640ab2eef tests/command_test.c : Use cart_test on RF64 files as well. 2013-02-11 19:57:49 +11:00
Erik de Castro Lopo
1fa256cd7a sndfile.h.in : Replace type 'long' with type 'int32_t' in SF_CART_INFO.
Type 'long' can be either 32 or 64 bits so replace it with a type with
a guaranteed size.
2013-02-11 19:57:49 +11:00
Chris Roberts
d7a161d943 Implemented CartChunk support for WAV files
Implement Cart Chunk support, in line with AES46.  The appropriate
standards document is available here:

http://www.aes.org/publications/standards/search.cfm?docID=41

Write tests to check consistency, check against reference application for
compatibility.

Only fully implemented with RIFF WAV format, though it might be applicable to
other formats.
2013-02-11 19:55:44 +11:00
Erik de Castro Lopo
518e3be6ef tests/ : Fix all printf format warnings. 2012-02-18 12:59:32 +11:00
Erik de Castro Lopo
8508ec5679 More whitespace and cstyle fixes. 2012-01-21 14:24:38 +11:00
Erik de Castro Lopo
18c1105981 Whitespace and cstyle fixes. 2012-01-20 22:46:13 +11:00
Erik de Castro Lopo
9b8d1e0f2f Fix a bunch of compiler warnings with gcc-4.6. 2011-03-28 18:43:05 +11:00
Erik de Castro Lopo
f209698448 Update copyright dates. 2011-01-19 21:36:56 +11:00
Erik de Castro Lopo
229e66bfb0 Tweak SF_BROADCAST_INFO tests. 2010-10-03 20:48:43 +11:00
Erik de Castro Lopo
197273486c Merge from -dev branch. 2009-10-18 21:16:32 +11:00
Erik de Castro Lopo
3fdcfaac9e tests/command_test.c : Add a test for BEXT in RF64. 2009-08-30 12:14:50 +10:00
Erik de Castro Lopo
e0607620f0 Update channel map tests. 2009-05-27 20:49:54 +10:00
Erik de Castro Lopo
9642444462 tests/command_test.c : Update channel_map_test() function so WAV test passes. 2009-05-24 08:33:20 +10:00
Erik de Castro Lopo
a38e0b105e Update copyright notices. 2009-02-07 15:20:17 +11:00
Erik de Castro Lopo
0c1e963eda tests/command_test.c : Add test to detect if coding history is truncated. 2008-10-28 06:56:16 +11:00
Erik de Castro Lopo
90dce5560a tests/command_test.c : Add broadcast_coding_history_size test. 2008-10-27 06:16:32 +11:00
Erik de Castro Lopo
8b4361bb6b tests/command_test.c : Rearrange prototypes. 2008-10-26 17:04:21 +11:00
Erik de Castro Lopo
797f33196c tests/command_test.c : Fix valgrind test. 2008-10-19 16:01:10 +11:00
Erik de Castro Lopo
2b01bc02f1 tests/command_test.c : Add test function instrument_rw_test, but don't hook it into the testing yet. 2008-10-13 20:07:19 +11:00
Erik de Castro Lopo
5b754eba25 tests/command_test.c : Fix false failure. 2008-10-10 06:50:10 +11:00
Erik de Castro Lopo
ca75132a34 tests/command_test.c : Improve error reporting when '\0' is found in coding history. 2008-10-10 06:05:28 +11:00
Erik de Castro Lopo
dcfdd7cbb4 Whitespace fixes. 2008-10-09 19:51:09 +11:00
Erik de Castro Lopo
8af5d534d6 tests/command_test.c : Add test to make sure all line endings are converted to \r\n. 2008-10-09 19:22:53 +11:00
Erik de Castro Lopo
1dcb1cac19 tests/command_test.c : Update bextch test to cope with previous change. 2008-10-08 21:18:59 +11:00
Erik de Castro Lopo
ca41f2649b tests/command_test.c : Add broadcast info test for WAVEX files. 2008-08-18 22:14:27 +10:00
Erik de Castro Lopo
904ccc26b5 tests/command_test.c : Add a new broadcast_rdwr_test (currently failing). 2008-08-17 12:27:54 +10:00
Erik de Castro Lopo
f12da21e24 tests/command_test.c : Fix valgrind warning. 2008-05-21 15:58:51 +10:00
Erik de Castro Lopo
d3321b7fc0 Whitespace and C style cleanups. 2008-04-19 19:19:24 +10:00
Erik de Castro Lopo
6e79c6c588 tests/command_test.c : More SFC_RAW_DATA_NEEDS_ENDSWAP tests. 2008-01-20 20:10:44 +11:00
Erik de Castro Lopo
b72f03928a Add command SFC_RAW_NEEDS_ENDSWAP with tests. 2008-01-20 19:19:12 +11:00
Erik de Castro Lopo
bef4583376 tests/command_test.c : Tweaks to version test. 2007-11-17 09:51:15 +11:00
Erik de Castro Lopo
98f04e3ef3 Add tests for correct updating of broadcast WAV coding history. 2007-11-03 11:58:33 +11:00
Erik de Castro Lopo
fc54aad003 Add test for SFC_GET_CURRENT_SF_INFO. 2007-10-21 17:29:04 +10:00