Commit Graph

54 Commits

Author SHA1 Message Date
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
Erik de Castro Lopo
0662d8a7c6 Fix gcc-4.1 type punned pointer warnings. 2006-06-21 13:15:05 +00:00
Erik de Castro Lopo
51cd92cd23 command_tests.c : Add channel map test. 2006-05-01 02:59:56 +00:00
Erik de Castro Lopo
d1b9e31444 Merge in changes from broadcast WAV branch.
Patches applied:

 * erikd@miles--2004/libsndfile--bext--0--base-0
   tag of erikd@miles--2004/libsndfile--mdev--1.0--patch-625

 * erikd@miles--2004/libsndfile--bext--0--patch-1
   Add BEXT patch from Paul Davis.

 * erikd@miles--2004/libsndfile--bext--0--patch-2
   Make it actually compile.

 * erikd@miles--2004/libsndfile--bext--0--patch-3
   Fix formatting of new code.

 * erikd@miles--2004/libsndfile--bext--0--patch-4
   Fix minor bugs after cleanup.

 * erikd@miles--2004/libsndfile--bext--0--patch-5
   Merge from --mdev branch.

 * erikd@miles--2004/libsndfile--bext--0--patch-6
   sndfile.h.in : Clean up formatting of SF_BROADCAST_INFO struct.

 * erikd@miles--2004/libsndfile--bext--0--patch-7
   wav.c : Cleanup of broadcast WAV stuff.

 * erikd@miles--2004/libsndfile--bext--0--patch-8
   wav.c : Fix minor bug in broadcast WAV stuff.

 * erikd@miles--2004/libsndfile--bext--0--patch-9
   sndfile-info.c : Minor cleanup.

 * erikd@miles--2004/libsndfile--bext--0--patch-10
   sndfile.c : More cleanups.

 * erikd@miles--2004/libsndfile--bext--0--patch-11
   sndfile.h.in : Fix whitespace.

 * erikd@miles--2004/libsndfile--bext--0--patch-12
   Merge from --mdev branch.

 * erikd@miles--2004/libsndfile--bext--0--patch-13
   Change coding_history field from char pointer to char array.

 * erikd@miles--2004/libsndfile--bext--0--patch-14
   Remove function broadcast_info_free.

 * erikd@miles--2004/libsndfile--bext--0--patch-15
   sndfile-info.c : Clean up output of broadcast_dump function.

 * erikd@miles--2004/libsndfile--bext--0--patch-16
   command_test.c : Start work on broadcast chunk tests.

 * erikd@miles--2004/libsndfile--bext--0--patch-17
   wav.c : Jump and ignore the 'levl' chunk.

 * erikd@miles--2004/libsndfile--bext--0--patch-18
   sndfile.h.in : Add block of reserved characters to SF_BROADCAST_INFO.

 * erikd@miles--2004/libsndfile--bext--0--patch-19
   Cleanup of broadcast WAV stuff.

 * erikd@miles--2004/libsndfile--bext--0--patch-20
   sndfile-info.c : Fix print message.

 * erikd@miles--2004/libsndfile--bext--0--patch-21
   Complete bext tests, hook test in test suite.
2006-03-30 22:43:51 +00:00
Erik de Castro Lopo
f4ee595dea Fix two INST related AIFF bugs. 2006-03-18 10:20:48 +00:00
Erik de Castro Lopo
76e004258d command_test.c : Remove XI from instrument test. 2006-02-19 08:58:30 +00:00
Erik de Castro Lopo
1c587d4d69 Don't exit on error in instrument test for XI files. 2006-01-21 01:10:10 +00:00
Erik de Castro Lopo
08c8886581 command_test.c : Update instrument tests for XI file.. 2006-01-19 09:05:23 +00:00
Erik de Castro Lopo
d566cbbdcd Add/update reading/writing instrument chunks. 2006-01-09 09:48:38 +00:00