Commit Graph

36 Commits

Author SHA1 Message Date
evpobr
a9f4037de1 Fix warnings reported by Clang 10 2020-08-31 16:59:01 +05:00
evpobr
41bba15973 Fix compiler warnings
Fix GCC 10.2.0 with -Wall -Wextra warnings.

src/ogg.c: Fix compiler warning

-Wsign-compare in ogg_stream_seek_page_search().

src/misc_test.c: Fix compiler warnings

-Wunused-parameter, -Wunused-variable in filesystem_full_test().

Windows platforms only.

src/ms_adpcm.c: Fix compiler warnings

-Wmaybe-uninitialized in msadpcm_encode_block().

src/ogg.c: Fix compiler warning

Comparison of distinct pointer types lacks a cast in
ogg_read_first_page().
2020-08-20 12:33:20 +05:00
Erik de Castro Lopo
cecc9a7498 RF64 tweaks
* Comments.
* Improve the `rf64_long_file_downgrade_test` test.
2017-04-18 20:07:10 +10:00
Erik de Castro Lopo
bf83b95fd9 RF64: Fix an RF64_AUTO_DOWNGRADE bug
Also add a test for this. The test is disabled by default because it
needs to write a 4 Gig file.

Closes: https://github.com/erikd/libsndfile/issues/238
2017-04-16 19:11:45 +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
95828ca2e9 Rename EXTERNAL_* to EXTERNAL_XIPH_*`
New naming makes sense because adding Wavpack support would not
depend on any of the existing Xiph.Org libraries.
2016-03-14 08:17:45 +11:00
Erik de Castro Lopo
85bac419b8 tests/misc_test.c: Add SFC_RF64_AUTO_DOWNGRADE test 2015-10-20 13:46:21 +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
a38e0b105e Update copyright notices. 2009-02-07 15:20:17 +11:00
Erik de Castro Lopo
7f51dea38e Add more RF64 tests. 2008-08-23 10:03:23 +10:00
Erik de Castro Lopo
1476a4bc5a tests/misc_test.c : Only run Ogg test if HAVE_EXTERNAL_LIBS is true. 2008-07-31 08:40:49 +10:00
Erik de Castro Lopo
6dff79f3b2 Fix segfault when closing an Ogg/Vorbis file that has been opened for write but had no actual data written to it. Add test. 2008-07-30 09:32:26 +10:00
Erik de Castro Lopo
2b7f4a1ecf tests/misc_test.c : Add a test for correct handling of Ambisonic files. 2008-07-03 20:29:42 +10:00
Erik de Castro Lopo
e48f1c7f4d Add tests for MPC 2000 file format. 2008-04-19 13:02:35 +10:00
Erik de Castro Lopo
2e97a51cdd Clean out cruft. 2008-04-05 20:13:47 +11:00
Erik de Castro Lopo
6ca8632158 misc_test.c : Force errno to zero at start of some tests. 2006-11-19 12:22:45 +11:00
Erik de Castro Lopo
155909bedf tests/misc_test.c : Fix permission_test to ensure that read only file can be created. 2006-11-05 19:38:29 +11:00
Erik de Castro Lopo
f3ea80efe5 Fix autoconf config issues using new file sfconfig.h. 2005-09-03 06:12:30 +00:00
Erik de Castro Lopo
fe7d03cd59 Remove some of the config related changes in last commit. They broke MinGW builds. 2005-09-03 03:50:47 +00:00
Erik de Castro Lopo
0c7b227de0 Fix a bunch of minor issues found by John Pavel using the Intel compiler. 2005-09-03 02:18:46 +00:00
Erik de Castro Lopo
67f408112e Add tests for CAF. 2005-07-08 10:43:00 +00:00
Erik de Castro Lopo
b8825e69e3 Update test progs to handle modified test_open_file_or_die().
Patches applied:

 * erikd@miles--2004/libsndfile--weird--1.0--base-0
   tag of erikd@miles--2004/libsndfile--mdev--1.0--patch-300

 * erikd@miles--2004/libsndfile--weird--1.0--patch-1
   Remove old definition of SF_FORMAT_SD2 from common.h.

 * erikd@miles--2004/libsndfile--weird--1.0--patch-2
   Move rsrc filename construction to psf_open_rsrc() and add SFE_SD2_FD_DISALLOWED.
2004-10-28 22:21:40 +00:00
Erik de Castro Lopo
0e46fbf73c Fix UPDATE_HEADER_AUTO corner case bug. 2004-05-19 13:23:52 +00:00
Erik de Castro Lopo
276ad91d4b Minor Win32 fixes II. 2004-05-10 11:41:28 +00:00
Erik de Castro Lopo
57a22ad562 Cstyle fromatting fixes. 2004-04-01 02:54:09 +00:00
Erik de Castro Lopo
39899a7a18 Perform update_header_test in RDWR mode as well. 2004-04-01 02:51:47 +00:00
Erik de Castro Lopo
191b296f18 Minor random win32 fixes. 2004-03-27 04:27:18 +00:00
Erik de Castro Lopo
7dd9999097 Add AVR file handling.
Patches applied:

 * erikd@miles--2004/libsndfile--avr--0--base-0
   tag of erikd@miles--2004/libsndfile--mdev--1.0--patch-68

 * erikd@miles--2004/libsndfile--avr--0--patch-1
   Move config.h to top of file.

 * erikd@miles--2004/libsndfile--avr--0--patch-2
   Add AVR file support.

 * erikd@miles--2004/libsndfile--avr--0--patch-3
   Fix minor bugs in AVR handling.

 * erikd@miles--2004/libsndfile--avr--0--patch-4
   Add AVR tests.
2004-03-26 09:35:47 +00:00
Erik de Castro Lopo
b27fdfb4d4 Add 2004 copyright dates. 2004-03-01 08:51:25 +00:00
Erik de Castro Lopo
26efcb703f More zip.com.au to mega-nerd.com changes. 2004-02-13 12:31:34 +00:00
Erik de Castro Lopo
09414afc7e Pull in changes from 1.0.6 pre-release testing. 2004-02-08 10:18:12 +00:00
Erik de Castro Lopo
a1e9265cad initial import
(automatically generated log message)
2004-01-21 07:46:34 +00:00
Erik de Castro Lopo
cb979e10a7 First snapshot of the public project. 2007-05-14 19:55:24 +10:00