Commit Graph

493 Commits

Author SHA1 Message Date
Erik de Castro Lopo
1c923e7159 src/sndfile.hh : Add a static SndfileHandle::formatCheck method. 2007-04-11 09:50:50 +10:00
Erik de Castro Lopo
be02f7d3e4 Fix a couple of compiler warnings. 2007-04-09 12:52:45 +10:00
Erik de Castro Lopo
744f93c17d src/mat4.c : Fix array indexing issue. Thanks to Ben Allison (Nullsoft) for alerting me. 2007-04-07 09:53:19 +10:00
Erik de Castro Lopo
d806de2b79 doc/FAQ.html : Add Q/A 19. 2007-03-05 15:08:23 +11:00
Erik de Castro Lopo
43e7da063e FAQ.html : Add Q/A 18 and clean up Q3. 2007-03-01 13:42:39 +11:00
Erik de Castro Lopo
9fca72cb4f Guard against MacOSX universal binary compiles. 2007-03-01 13:41:56 +11:00
Erik de Castro Lopo
94fee4ea48 aiff.c : Add support for 'in24' files. 2007-02-22 10:28:57 +11:00
Erik de Castro Lopo
8805e441c0 Add files src/audio_detect.c src/test_audio_detect.c, hook into build. 2007-02-13 13:35:59 +11:00
Erik de Castro Lopo
ac61efccb8 Remove examples/cooledit-fixer.c. 2007-02-07 10:08:23 +11:00
Erik de Castro Lopo
e18281a835 Start work on using WAV_PRIVATE struct. 2007-02-07 00:14:08 +11:00
Erik de Castro Lopo
a84bd14878 examples/sndfile-play.c : For ALSA, use the 'default' device instead of 'plughw:0'. 2007-01-25 22:20:17 +11:00
Erik de Castro Lopo
c19f99835b sndfile.c : Allow writing of WAV/WAVEX 'BEXT' chunks in SFM_RDWR mode. 2007-01-22 22:26:09 +11:00
Erik de Castro Lopo
20a42d63eb embedded_files.html : Minor correction. 2007-01-21 11:01:23 +11:00
Erik de Castro Lopo
319a7ffd59 sndfile-convert.c : Add -override-sample-rate command line option. 2006-12-16 08:00:55 +11:00
Erik de Castro Lopo
ba5e976303 configure.as : Remove an assembler test which was failing on OSX. 2006-11-19 12:25:05 +11:00
Erik de Castro Lopo
7a667e179a src/FLAC : Fix path problems for MinGW. 2006-11-15 13:20:03 +11:00
Erik de Castro Lopo
dc2a07ceaa common.h : Fix the definition of SF_PLATFORM_S64 for MinGW. 2006-11-15 13:19:13 +11:00
Erik de Castro Lopo
0515c51c37 Fix a bug reading/writing 64 bit header fields. Complete unit tests. 2006-11-13 19:59:30 +11:00
Erik de Castro Lopo
9310d9bf3c Clean up unit testing. 2006-11-13 18:46:31 +11:00
Erik de Castro Lopo
c7c7fac9b9 Clean up include paths. 2006-11-13 18:12:10 +11:00
Erik de Castro Lopo
8ff6c56bac sfendian.h : Add include guard. 2006-11-13 12:00:04 +11:00
Erik de Castro Lopo
fe4d443e58 Refactoring to clean up psf_open_file() and vairous sf_open() functions. 2006-11-11 12:28:36 +11:00
Erik de Castro Lopo
bdbbaa6f62 sndfile.c : Refactor function psf_open_file() to provide a single return point. 2006-11-05 11:26:41 +11:00
Erik de Castro Lopo
70c05dea7b For AIFF, SVX and WAV add warning to log if file is bigger than 4 gig. 2006-11-03 20:53:39 +11:00
Erik de Castro Lopo
292b99bb4d Pull OGG sources. 2006-11-01 11:11:01 +11:00
Erik de Castro Lopo
2b78350a24 wav.c : Add workaround for excessively long coding history in the 'bext' chunk. 2006-10-27 10:12:09 +00:00
Erik de Castro Lopo
b89e025dbe Use SF_AMBISONIC_* instead of SF_TRUE/SF_FALSE. 2006-10-23 10:48:33 +00:00
Erik de Castro Lopo
84e335398c Apply a patch from Fons Adriaensen to allow writing on WAVEX Ambisonic files. Still needs a little tweaking. 2006-10-22 11:34:33 +00:00
Erik de Castro Lopo
d4d3f1c402 Add a function psf_sanitize_string and use it in aiff.c. 2006-10-19 09:56:12 +00:00
Erik de Castro Lopo
ad1e07a01c Fix a bug in parsing AIFF files with a slightly unusual 'basc' chunk. 2006-10-19 09:30:49 +00:00
Erik de Castro Lopo
36d5cf97f9 Apply a patch from Fons Adriaensen which fixes a minor WAVEX GUID issue. 2006-10-17 19:33:53 +00:00
Erik de Castro Lopo
dfd94de25c Fix problem related to recent test coverage changes. 2006-10-17 11:28:32 +00:00
Erik de Castro Lopo
2593c24c12 Add --enable-test-coverage configure option. 2006-10-15 11:05:45 +00:00
Erik de Castro Lopo
e9d0af5e98 sndfiile.hh : Add an std:string SndfileHandle constructor. 2006-10-04 22:51:31 +00:00
Erik de Castro Lopo
4973a9537a Fix the 'make distcheck' target. 2006-10-04 14:07:57 +00:00
Erik de Castro Lopo
843056fc3f Update scale_clip_test.(def|tpl) to test for new code. 2006-10-03 11:48:10 +00:00
Erik de Castro Lopo
3d8a64af63 aiff_rw_test.c : Add 'MARK' chunks to make sure they are parsed correctly. 2006-09-06 03:43:57 +00:00
Erik de Castro Lopo
b70e51fba8 aiff.c : Fix parsing of MARK chunks. 2006-09-05 12:15:21 +00:00
Erik de Castro Lopo
ca89db0275 Fix overflow problems when ensuring that signalis not zero. 2006-09-02 08:51:16 +00:00
Erik de Castro Lopo
2b06fbb022 Make the SF_MIN and SF_MAX macros at least partially type safe. 2006-09-02 01:12:54 +00:00
Erik de Castro Lopo
b51bab566c Updates from 1.0.17 release. 2006-08-31 09:38:29 +00:00
Erik de Castro Lopo
cb54001ed9 More sndfile.hh updates. 2006-08-08 08:13:40 +00:00
Erik de Castro Lopo
caf5b66170 Bunch of changes to sndfile.hh and test program. 2006-08-01 05:20:19 +00:00
Erik de Castro Lopo
e99159ef56 More sndfile.hh updates, and tests. 2006-07-30 08:24:34 +00:00
Erik de Castro Lopo
4bb4611783 Change the license for the C++ wrapper to BSD. 2006-07-29 11:19:19 +00:00
Erik de Castro Lopo
32861925fd Remove the generated file so "make distcheck" passes. 2006-07-29 10:41:06 +00:00
Erik de Castro Lopo
062e09c7c9 Complete sndfile.hh and add more tests. 2006-07-28 09:28:09 +00:00
Erik de Castro Lopo
576e6f6f68 Add a C++ test and hook into build. 2006-07-27 10:39:08 +00:00
Erik de Castro Lopo
ce4f5ba1ad Test if compiler supports -Wpointer-arith. Fix one warning. 2006-07-25 22:02:22 +00:00
Erik de Castro Lopo
8f9e971705 wav_w64.[ch] : Minor clean up, add detection of IPP ITU G723.1. 2006-07-15 11:57:41 +00:00
Erik de Castro Lopo
79307bc119 sndfile-info.c : Make sure to parse info if file fails to open. 2006-07-15 10:48:52 +00:00
Erik de Castro Lopo
b404b718c0 sndfile-play.c : Explicitly set endian-ness as well as setting 16 bit output. 2006-07-15 10:42:24 +00:00
Erik de Castro Lopo
fd812fbc18 Fix psf->dataoffset for headerless files opened based on filename extension. 2006-06-23 00:10:37 +00: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
12633db1bf sndfile.c : Fixed a login bug in sf_seek(). 2006-06-20 13:04:05 +00:00
Erik de Castro Lopo
f5020b8440 file_io.c : Make sure psf->syserr is set correctly on win32. 2006-06-20 12:58:26 +00:00
Erik de Castro Lopo
f90ff01b4c configure.ac : Fixed detection of S_IRGRP. 2006-06-04 12:23:54 +00:00
Erik de Castro Lopo
fcf46c98d2 sndfile-convert.c : Add conversion SF_INSTRUMENT data when present. 2006-05-30 13:18:56 +00:00
Erik de Castro Lopo
d32f698602 Remove fdate field from SF_PRIVATE struct and replace it with codec_data. 2006-05-22 05:12:36 +00:00
Erik de Castro Lopo
312223264b aiff.c : When writing 'AIFC' files, make sure get an 'FVER' gets added. 2006-05-22 03:57:16 +00:00
Erik de Castro Lopo
1d3732fee4 Add a minimal win32 test program, fix Mingw build script. 2006-05-10 04:35:37 +00:00
Erik de Castro Lopo
edba01c923 Fix printf formatting for int64_t on 64 bit machines. 2006-05-05 11:34:27 +00:00
Erik de Castro Lopo
29d727dba6 double64.c : Clean up double64_get_capability(). 2006-05-04 12:25:51 +00:00
Erik de Castro Lopo
6b36b196c7 Add new file to check for bad parameters passed to psf_binheader_writef(), add to Makefile.am, fix bugs. 2006-05-04 10:54:47 +00:00
Erik de Castro Lopo
c3efe4fd96 Fix an x86_64 issue of int being passed via stdargs to a size_t. 2006-05-03 10:20:06 +00:00
Erik de Castro Lopo
5c9136b5b9 Fix more signed/unsigned issues. 2006-05-02 13:30:11 +00:00
Erik de Castro Lopo
50823c0383 double64.c : Fix a signed/unsigned issue. 2006-05-02 10:39:07 +00:00
Erik de Castro Lopo
25e21e1306 Fix a couple of signed/unsigned problems. 2006-05-02 10:23:11 +00:00
Erik de Castro Lopo
d1da6dbaaa Add a channel_map pointer to the SF_PRIVATE struct. 2006-05-01 08:54:27 +00:00
Erik de Castro Lopo
038d8f62c7 sndfile-info.c : Clean up usage of SF_INFO struct. 2006-04-30 12:51:24 +00:00
Erik de Castro Lopo
acd834c013 sndfile.h.in : Define enums for channel mapping. 2006-04-30 10:58:01 +00:00
Erik de Castro Lopo
06540d5da3 Updates for 1.0.16 release. 2006-04-30 10:36:12 +00:00
Erik de Castro Lopo
863b324211 tests/util.tpl : Add function exit_if_true(). 2006-04-29 00:01:28 +00:00
Erik de Castro Lopo
d6ff32fd4f Update tests for new commands. 2006-04-15 01:03:43 +00:00
Erik de Castro Lopo
9163c74a1b Fix a bug which when PEAK chunk was enabled/disabled a couple of times and update peak_chunk_test. 2006-04-01 23:47:34 +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
2650c64176 configure.ac Fix handling of --enable and --disable args. 2006-03-26 05:36:38 +00:00
Erik de Castro Lopo
4eb429d44b Make if really clear that the precompiled DLL can be used with MSVC++. 2006-03-22 05:38:20 +00:00
Erik de Castro Lopo
576c5575de aiff.c : Fix potential bug in writing MARK chunks. 2006-03-18 11:16:07 +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
329772f2f5 tests/Makefile.am Remove --source-time. 2006-03-17 08:24:19 +00:00
Erik de Castro Lopo
55b4a702f0 src/Makefile.am : Remove --source-time argument from autogen command lines. 2006-03-17 07:56:00 +00:00
Erik de Castro Lopo
10dcfcd752 Bump configure version to 1.0.15. Update docs. 2006-03-16 11:45:55 +00:00
Erik de Castro Lopo
51d28c2dd8 Add file README-precompiled-dll.txt to dist build. 2006-03-16 11:16:39 +00:00
Erik de Castro Lopo
6fb384c705 Merge RIFX stuff from --rifx branch.
Patches applied:

 * erikd@miles--2004/libsndfile--rifx--0--base-0
   tag of erikd@miles--2004/libsndfile--mdev--1.0--patch-613

 * erikd@miles--2004/libsndfile--rifx--0--patch-1
   Add patch from Jesse Chappell for RIFX file support (needs work).

 * erikd@miles--2004/libsndfile--rifx--0--patch-2
   Merge from --mdev branch.

 * erikd@miles--2004/libsndfile--rifx--0--patch-3
   write_read_test.tpl : Add RIFX tests.

 * erikd@miles--2004/libsndfile--rifx--0--patch-4
   More minor RIFX fixes.

 * erikd@miles--2004/libsndfile--rifx--0--patch-5
   Add RIFX tests.
2006-03-11 10:51:45 +00:00
Erik de Castro Lopo
42f2cc322d win32.html : Update versions of MinGW tools used. 2006-03-10 09:31:56 +00:00
Erik de Castro Lopo
fe76af130f Mingw-make-dist.sh : bunch of improvements. 2006-03-10 07:32:25 +00:00
Erik de Castro Lopo
ca8638f354 win32.html : Fix, typo, mention that Cygwin with -mno-cygwin does not work. 2006-03-09 01:37:35 +00:00
Erik de Castro Lopo
3139c27ff6 Make sure Cygwin DLL ordinal numbers are also correct. 2006-03-08 22:49:20 +00:00
Erik de Castro Lopo
b7948fa64e Bunch of changes to fix MinGW DLL ordinal numbers. 2006-03-08 21:57:18 +00:00
Erik de Castro Lopo
33247cd906 Fix setting of SHLIB_VERSION_ARG for MinGW. 2006-03-08 08:05:56 +00:00
Erik de Castro Lopo
c0622ed1b3 Add a workaround for situations where OSX seems to add an extra 0x52 bytes to the start of the resource fork. 2006-03-04 03:05:06 +00:00
Erik de Castro Lopo
270c150db7 Fix problem where int/size_t were being passed to a varargs function. 2006-03-04 02:15:05 +00:00
Erik de Castro Lopo
7701898bf6 index.html : Add link for GPG signatures. 2006-02-20 02:14:47 +00:00
Erik de Castro Lopo
8167ede3fd Prepare for 1.0.14 release. 2006-02-19 12:32:18 +00:00
Erik de Castro Lopo
4f9abf8010 sd2.c : Improve logging of errors in resource fork parser. 2006-02-11 05:15:48 +00:00
Erik de Castro Lopo
3d271869d0 Makefile.msvc : Replace au_g72x.* with g72x.*. 2006-01-31 07:23:05 +00:00
Erik de Castro Lopo
3e1f762eab Make sure return values are initialised header buffer is full, add workarounds for messed up WAV files. 2006-01-29 10:54:06 +00:00
Erik de Castro Lopo
93ea26e3af Bump version to 1.0.13. 2006-01-21 03:54:51 +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
9ce84c0ae5 Add largefile_test.c and hook into build. 2006-01-19 09:05:37 +00:00
Erik de Castro Lopo
de72671479 Bump version to 1.0.13pre7. 2006-01-10 08:54:57 +00:00
Erik de Castro Lopo
d566cbbdcd Add/update reading/writing instrument chunks. 2006-01-09 09:48:38 +00:00
Erik de Castro Lopo
dd81b7cac5 Use <inttypes.h> if <stdint.h> is not available. 2006-01-05 10:31:29 +00:00
Erik de Castro Lopo
ba42ebbeb0 Fix a bug that prevented the turning off of PEAK chunks. 2005-12-30 03:20:23 +00:00
Erik de Castro Lopo
77596a1e20 Bump configure version to 1.0.13pre4. 2005-12-29 03:35:57 +00:00
Erik de Castro Lopo
cbb7987a00 Apply patch from John ffitch to add read/write of instrument chunks. 2005-12-28 02:20:08 +00:00
Erik de Castro Lopo
e582a8c893 A test to make sure sf_error() returns a valid error number. 2005-12-10 02:43:03 +00:00
Erik de Castro Lopo
01321f6620 sndfile.c : Make the return value of sf_error() match the API documentation. 2005-12-07 09:49:12 +00:00
Erik de Castro Lopo
8cefd46b81 sndfile.c : Rejig file extension based file type detection. 2005-11-19 01:27:10 +00:00
Erik de Castro Lopo
8712204014 Add "gsm" as a recognised file extension. Add tests. 2005-11-16 11:42:10 +00:00
Erik de Castro Lopo
0ec53fa7ad api.html : Minor fixes. 2005-11-13 11:07:52 +00:00
Erik de Castro Lopo
e02f934673 More G721 WAV fixes. 2005-10-29 20:08:32 +00:00
Erik de Castro Lopo
d78e308a9e g72x.(c|h) : Minor cleanup of interface. 2005-10-29 12:50:14 +00:00
Erik de Castro Lopo
2814d19a12 caf.c : Fix a memory leak. 2005-10-28 15:46:35 +00:00
Erik de Castro Lopo
eebaf47a13 Rmove broken ogg code. 2005-10-28 12:22:59 +00:00
Erik de Castro Lopo
7b12c9d636 Merge codec_close/container_close mods from --codec-close branch.
Patches applied:

 * erikd@miles--2004/libsndfile--codec-close--0--base-0
   tag of erikd@miles--2004/libsndfile--mdev--1.0--patch-545

 * erikd@miles--2004/libsndfile--codec-close--0--patch-1
   Start work on separate codec and container close functions.

 * erikd@miles--2004/libsndfile--codec-close--0--patch-2
   Start using codec_close function pointer.

 * erikd@miles--2004/libsndfile--codec-close--0--patch-3
   Start using container_close function pointer.

 * erikd@miles--2004/libsndfile--codec-close--0--patch-4
   dwvw.c : Missed this in previous changes.

 * erikd@miles--2004/libsndfile--codec-close--0--patch-5
   ima_adpcm.c : Modify existing *_close to be a codec_close function.

 * erikd@miles--2004/libsndfile--codec-close--0--patch-6
   ms_adpcm.c : Modify existing *_close to be a codec_close function.

 * erikd@miles--2004/libsndfile--codec-close--0--patch-7
   Remove the old close function pointer from the SF_PRIVATE struct.

 * erikd@miles--2004/libsndfile--codec-close--0--patch-8
   lossy_comp_test.c : Reinstate check_comment() code form SF_FORMAT_(IMA|MS)_ADPCM.
2005-10-26 21:26:13 +00:00
Erik de Castro Lopo
8232502115 lossy_comp_test.c : More fixes. 2005-10-26 19:50:16 +00:00
Erik de Castro Lopo
4459b96d51 index.html : Update support matrix. 2005-10-26 14:54:59 +00:00
Erik de Castro Lopo
b942c1fafb Merge from --wav-g721 branch.
Patches applied:

 * erikd@miles--2004/libsndfile--wav-g721--0--base-0
   tag of erikd@miles--2004/libsndfile--mdev--1.0--patch-517

 * erikd@miles--2004/libsndfile--wav-g721--0--patch-1
   Start work on adding wav g721 support.

 * erikd@miles--2004/libsndfile--wav-g721--0--patch-2
   Merge from --mdev branch.

 * erikd@miles--2004/libsndfile--wav-g721--0--patch-3
   Add writing of g721 wav files, plus tests.

 * erikd@miles--2004/libsndfile--wav-g721--0--patch-4
   Clean up handling of g721.

 * erikd@miles--2004/libsndfile--wav-g721--0--patch-5
   Merge from --mdev.

 * erikd@miles--2004/libsndfile--wav-g721--0--patch-6
   Merge from --mdev.

 * erikd@miles--2004/libsndfile--wav-g721--0--patch-7
   More cleanup of G72x handling.

 * erikd@miles--2004/libsndfile--wav-g721--0--patch-8
   Whitespace cleanup.

 * erikd@miles--2004/libsndfile--wav-g721--0--patch-9
   More g72x cleanups.

 * erikd@miles--2004/libsndfile--wav-g721--0--patch-10
   More g72x refactoring.

 * erikd@miles--2004/libsndfile--wav-g721--0--patch-11
   More refactoring.

 * erikd@miles--2004/libsndfile--wav-g721--0--patch-12
   More refactoring II.

 * erikd@miles--2004/libsndfile--wav-g721--0--patch-13
   More refactoring III.

 * erikd@miles--2004/libsndfile--wav-g721--0--patch-14
   More refactoring IV.

 * erikd@miles--2004/libsndfile--wav-g721--0--patch-15
   More refactoring V.

 * erikd@miles--2004/libsndfile--wav-g721--0--patch-16
   More refactoring VI.

 * erikd@miles--2004/libsndfile--wav-g721--0--patch-17
   wav.c : Remove extraneous call to g72x_init().

 * erikd@miles--2004/libsndfile--wav-g721--0--patch-18
   src/g72x.c : fix handling of block count and psf->datalength.

 * erikd@miles--2004/libsndfile--wav-g721--0--patch-19
   lossy_comp_test.c : Add tests for G721 encoded WAV files.

 * erikd@miles--2004/libsndfile--wav-g721--0--patch-20
   Merge from --mdev branch.

 * erikd@miles--2004/libsndfile--wav-g721--0--patch-21
   Merge from --mdev branch.
2005-10-26 14:52:52 +00:00
Erik de Castro Lopo
2104ae2b68 lossy_comp_test.c : Add string data to end of files. 2005-10-26 13:59:50 +00:00
Erik de Castro Lopo
39b67f75e2 Add extra checks in *_init functions. 2005-10-26 11:02:57 +00:00
Erik de Castro Lopo
86cafb25bf sndfile-info.c : Complete dumping SF_INSTRUMENT data. 2005-10-26 07:05:51 +00:00
Erik de Castro Lopo
4d30cb9c93 sndfile-info.c : Start work on dumping SF_INSTRUMENT data. 2005-10-25 04:49:15 +00:00
Erik de Castro Lopo
8952450542 command_test.c : Add test for setting/getting SF_INSTRUMENT data. 2005-10-23 18:25:40 +00:00
Erik de Castro Lopo
705032cf79 Start tests for SF_INSTRUMENT, command_test.c is no longer autogen-ed. 2005-10-23 07:32:04 +00:00
Erik de Castro Lopo
b0343ccc27 Add code to get and set SF_INSTRUMENT data. 2005-10-22 20:26:52 +00:00
Erik de Castro Lopo
29aee93d17 Start work on reading/writing the SF_INSTRUMENT data. Add support for Ambisoncs B WAVEX files. 2005-10-22 20:10:42 +00:00
Erik de Castro Lopo
57557a86db gsm610.c : Minor cleanup. 2005-10-15 05:30:00 +00:00
Erik de Castro Lopo
0730f47e6e lossy_comp_test.c : Minor cleanup. 2005-10-14 05:59:43 +00:00
Erik de Castro Lopo
e5ce14d960 gsm610.c : Make sure SF_FORMAT_WAVEX are handled correctly. 2005-10-13 10:56:48 +00:00
Erik de Castro Lopo
efd5b23767 file_io.c : Add comments documenting the three sections of the file. 2005-10-13 09:30:17 +00:00
Erik de Castro Lopo
6740909a31 Ensure sfconfig.h is included before any other header file. 2005-10-13 09:22:16 +00:00
Erik de Castro Lopo
979f8d1073 configure.ac : Add options to allow disabling of FLAC and ALSA. 2005-10-07 13:27:53 +00:00
Erik de Castro Lopo
eae9c4e12c Final updates before 1.0.12 release. 2005-09-30 12:40:09 +00:00
Erik de Castro Lopo
d199d375d9 configure.ac : Bump the version to 1.0.12. 2005-09-29 19:58:53 +00:00
Erik de Castro Lopo
a1f11438e0 locale_test.c : Fix the unicode string encoding. 2005-09-29 19:57:24 +00:00
Erik de Castro Lopo
d81614ca90 flac.c : Fix valgrind error and minor cleanup. 2005-09-25 20:52:16 +00:00
Erik de Castro Lopo
b9bfb46e73 Make sure structs are initialised. 2005-09-25 09:28:29 +00:00
Erik de Castro Lopo
dfa8b4998b Add -std=gnu99 to CFLAGS if the compiler supports it. 2005-09-24 07:11:19 +00:00
Erik de Castro Lopo
403c5b55d9 Make -Wdeclaration-after-statement work with --enable-gcc-werror. 2005-09-24 01:45:43 +00:00
Erik de Castro Lopo
b39159f4a5 Add -Wdeclaration-after-statement to CFLAGS if the compilers supports it. 2005-09-23 10:02:20 +00:00
Erik de Castro Lopo
73cd4f04b4 utils.(tpl|def) : Make the test_write_*_or_die() functions const safe. 2005-09-22 10:52:36 +00:00
Erik de Castro Lopo
9be4599999 nist.c : Read the data offset from the file. 2005-09-21 12:30:25 +00:00
Erik de Castro Lopo
3bbe673dee Add new test program locale_test. 2005-09-20 08:51:50 +00:00
Erik de Castro Lopo
b6fa7b6086 Add configure checks for <locale.h> and setlocale(). 2005-09-20 02:03:43 +00:00
Erik de Castro Lopo
4cb4ce2588 On windows, use windows specific types for file handles. 2005-09-18 02:36:09 +00:00
Erik de Castro Lopo
446c9caf4f float_cast.h : Add Cygwin specific replacements for lrint/lrintf. 2005-09-06 10:07:25 +00:00
Erik de Castro Lopo
736d33f4f2 Update build for MSVC. 2005-09-05 11:33:47 +00:00
Erik de Castro Lopo
83739f3292 configure.ac : Simplify and correct configuring for Cygwin. 2005-09-05 08:32:59 +00:00
Erik de Castro Lopo
a0e2294069 Add a few valgrind fixups. 2005-09-04 11:12:23 +00:00
Erik de Castro Lopo
2338f7c69b file_io.c : Remove Mac OS9 / Metrowerks compiler support. 2005-09-03 15:23:40 +00: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
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
5ff27b2e3b Cast integer literal to sf_count_t in call to psf_binheader_writef(). 2005-08-31 09:00:57 +00:00
Erik de Castro Lopo
e709804f30 command.html : Improve documentation of SF_GET_FORMAT_SUBTYPE. 2005-08-29 22:43:52 +00:00
Erik de Castro Lopo
0fed6bc733 sd2.c : Fix a reading/writing bug on little endian CPUs. 2005-08-25 23:29:34 +00:00
Erik de Castro Lopo
c1434c379a sndfile-convert.c : Allow files to be converted to SD2 format. 2005-08-25 23:01:23 +00:00
Erik de Castro Lopo
19a82b6c60 api.html : Update Note2 to point to SFC_SET_SCALE_FLOAT_INT_READ. 2005-08-24 22:35:33 +00:00
Erik de Castro Lopo
b77a7e3e5a configure.ac : Use instead of . 2005-08-16 11:13:32 +00:00
Erik de Castro Lopo
2d08b3877f Improve log output for WAVE_FORMAT_EXTENSIBLE files. 2005-08-15 13:31:34 +00:00
Erik de Castro Lopo
62ee2d59ae Merge of single patch from --hack branch.
Patches applied:

 * erikd@mega-nerd.com--2004/libsndfile--hack--0--patch-41
   Fix psf_fsync() for win32.
2005-08-15 08:18:42 +00:00
Erik de Castro Lopo
45fb540acf Apply fix to allow building from outside the source dir. 2005-08-14 23:06:30 +00:00
Erik de Castro Lopo
94dec2df1c sndfile-convert.c : Add support for writing to VOX adpcm output files. 2005-08-10 09:18:51 +00:00
Erik de Castro Lopo
e2465df58f api.html : Document the new function sf_write_sync(). 2005-07-31 00:40:59 +00:00
Erik de Castro Lopo
6c7bb3dc3f Add funtions sf_write_sync() to the API. 2005-07-28 11:29:28 +00:00
Erik de Castro Lopo
1bf3e32333 caf.c : Add support for 'peak' chunk. 2005-07-24 11:02:25 +00:00
Erik de Castro Lopo
c4fe0c644d More PEAK info handling updates. 2005-07-24 07:56:41 +00:00
Erik de Castro Lopo
4747955bb8 Change the way PEAK chunk info is stored internally. 2005-07-24 02:06:07 +00:00
Erik de Castro Lopo
e09b30bc1f Fix allocation for PEAK_CHUNK_32 (bug found using valgrind). 2005-07-23 07:25:32 +00:00
Erik de Castro Lopo
12f02a994f flac.c : Add debug and make private functions static. 2005-07-23 07:24:07 +00:00
Erik de Castro Lopo
567dab060c nist.c : Fix a bug where a variable was being used without being initialized. 2005-07-23 06:12:38 +00:00
Erik de Castro Lopo
1ae9d20e71 Rename PEAK_CHUNK and PEAK_POS to PEAK_CHUNK_32 and PEAK_POS_32. 2005-07-21 10:19:29 +00:00
Erik de Castro Lopo
5751ad0e64 Remove had_peak field of SF_PRIVATE, use pchunk != NULL instead. 2005-07-21 09:53:16 +00:00
Erik de Castro Lopo
53c996b794 Move peak_loc field of SF_PRIVATE struct to PEAK_CHUNK struct. 2005-07-21 09:33:58 +00:00
Erik de Castro Lopo
0777d4a596 Remove unused SF_PRIVATE field end_of_file. 2005-07-14 12:08:46 +00:00
Erik de Castro Lopo
8a716dbe75 aiff.c : Move to new (correct) AIFF string style. 2005-07-12 11:58:37 +00:00
Erik de Castro Lopo
2cccaf5416 Allow SFE_UNSUPPORTED_FORMAT as an error from sf_open(). 2005-07-10 08:53:10 +00:00
Erik de Castro Lopo
32cdbbe71c Bump version to 1.0.12pre10. 2005-07-09 05:48:30 +00:00
Erik de Castro Lopo
67f408112e Add tests for CAF. 2005-07-08 10:43:00 +00:00
Erik de Castro Lopo
921e566525 caf.c : Add file write support. 2005-07-08 09:38:34 +00:00
Erik de Castro Lopo
1a7dd6793b Fix Q/A about reading/writing memory buffers. 2005-07-07 08:38:51 +00:00
Erik de Castro Lopo
31ae3ca6eb New file caf.c and hook into build. 2005-07-04 07:24:43 +00:00
Erik de Castro Lopo
8cedbc6b72 Update ChangeLog. 2005-06-22 10:45:31 +00:00
Erik de Castro Lopo
1945dc2040 Remove redundant error code SFE_WAV_FMT_TOO_BIG. 2005-06-20 22:54:07 +00:00
Erik de Castro Lopo
151b16e5ac Fix compiling when sqlite is missing. 2005-06-20 07:04:21 +00:00
Erik de Castro Lopo
519095aa0c Return SF_ERR_MALFORMED_FILE if header parsing fails. 2005-06-20 06:44:58 +00:00
Erik de Castro Lopo
5dddc3ad51 Manual merge of virtual i/o code. 2005-06-11 06:27:27 +00:00
Erik de Castro Lopo
a9aec54fbf Fix return values of a couple of sf_command()s. 2005-06-10 08:34:24 +00:00
Erik de Castro Lopo
efcc3f7e40 Fix a regression in handling of long ICMT chunks. 2005-05-17 09:43:59 +00:00
Erik de Castro Lopo
ede89ebb1c aiff.c : Fix parsing of odd length ANNO chunks. 2005-05-15 01:04:54 +00:00
Erik de Castro Lopo
4df9d9e5f9 libsndfile.spec.in : Add html docs to the files section. 2005-05-14 23:34:08 +00:00
Erik de Castro Lopo
dcf20ed12d Change the include guard in common.h to prevent clashes with other software. 2005-05-14 11:07:32 +00:00
Erik de Castro Lopo
7ed5aeda3f Improve error handling in code for playback under Linux/ALSA. 2005-05-12 09:54:05 +00:00
Erik de Castro Lopo
c72d488e91 Bump configure.ac version, update ChangeLog. 2005-05-10 10:43:25 +00:00
Erik de Castro Lopo
d343bda014 Fix for WAV file with off LIST chunks. 2005-05-10 10:33:25 +00:00
Erik de Castro Lopo
cf43fb1528 Fix writing of IRCAM files. 2005-05-10 09:11:51 +00:00
Erik de Castro Lopo
0be787c794 Write correct wavex channels masks for the most common channel configurations. 2005-04-30 11:38:47 +00:00
Erik de Castro Lopo
bd4fc1074b Only add FLAC to format arrays if FLAC is enabled. 2005-04-07 21:30:34 +00:00
Erik de Castro Lopo
611e60260d Add support for resource fork files in the .AppleDouble/ directory. 2005-03-09 10:29:32 +00:00
Erik de Castro Lopo
b6d8afa0bf Fix a channel printing bug in the svx.c. 2005-03-01 07:20:48 +00:00
Erik de Castro Lopo
36b8a5c3f2 Fix a rsrc fork problem on MacOSX. 2005-01-26 06:10:48 +00:00
Erik de Castro Lopo
6cfafbf99c Rename SF_SEEK_ERROR to PSF_SEEK_ERROR. 2005-01-25 22:06:27 +00:00
Erik de Castro Lopo
2cde67564c Do not exit parsers when log buffer overflows. Remove SFE_LOG_OVERRUN. 2005-01-25 07:26:33 +00:00
Erik de Castro Lopo
8bef0e5b32 Make sure audio output is flushed before closing devices in ALSA and OSS code. 2004-12-30 23:48:42 +00:00
Erik de Castro Lopo
a97fb9fce2 Const-ify the write path throughout. 2004-12-23 10:49:57 +00:00
Erik de Castro Lopo
f09eeb70e8 Minor updates to using tla. 2004-12-14 07:12:31 +00:00
Erik de Castro Lopo
f95fef7d61 Minor improvements to bugs.html. 2004-11-29 10:51:42 +00:00
Erik de Castro Lopo
87a3a20f67 Update ChangeLog. 2004-11-18 10:27:51 +00:00
Erik de Castro Lopo
ef50335e6a Remove some ambiguities in the SD2 FAQ answer. 2004-11-16 07:50:09 +00:00
Erik de Castro Lopo
5bbf1347f6 Release 1.0.11. 2004-11-15 11:37:32 +00:00
Erik de Castro Lopo
93333cb6bb Use ANNO chunk to SF_STR_COMMENT, instead of COMT. 2004-11-12 13:37:13 +00:00
Erik de Castro Lopo
b935e188f3 Change ptr arg to psf_write() to const void*. 2004-11-07 00:26:14 +00:00
Erik de Castro Lopo
9c91336578 Parse 'ACID' and 'basc' chunks. 2004-10-31 12:52:03 +00:00
Erik de Castro Lopo
00e047fb44 Add functions to check for file descriptor leakage. 2004-10-31 09:28:42 +00:00
Erik de Castro Lopo
414f41eb1c Bump version to 1.0.11pre9. 2004-10-30 00:33:04 +00:00
Erik de Castro Lopo
b2e4545563 Make writing of SD2 files work on little endian systems. 2004-10-29 10:48:22 +00:00
Erik de Castro Lopo
f31cc3b13e Preliminary SD2 tests now working.
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:25:02 +00:00
Erik de Castro Lopo
c84fa765d0 Fix for sd2 files with large resource forks. 2004-10-27 11:13:43 +00:00
Erik de Castro Lopo
b5c03a45a4 Update parsing of ACID chunk in WAV files. 2004-10-27 10:46:36 +00:00
Erik de Castro Lopo
1ef19c4e90 Bump version in configure.ac, update ChangeLog. 2004-10-24 00:57:07 +00:00
Erik de Castro Lopo
c7a3c73d0c Update ChangeLog. 2004-10-17 01:30:53 +00:00
Erik de Castro Lopo
2a117a2027 Add test_endswap. 2004-10-12 03:13:15 +00:00
Erik de Castro Lopo
6ec81f5c2a Add comment about -no-undefined. Update ChangeLog. 2004-10-06 09:16:31 +00:00
Erik de Castro Lopo
e446bf7440 Document SFC_SET_SCALE_FLOAT_INT_READ. 2004-09-30 16:01:03 +00:00
Erik de Castro Lopo
7bb66e44a0 Add tests for SFC_SET_FLOAT_INT_MULTIPLIER. 2004-09-30 12:46:02 +00:00
Erik de Castro Lopo
148d6e63d1 Fix OSX error message in sndfile-play.c. 2004-09-22 08:10:03 +00:00
Erik de Castro Lopo
ae5574611e Prevent race conditions in win32 code of sndfile-play.c. 2004-09-05 08:31:16 +00:00
Erik de Castro Lopo
0d26ee09b8 Bump version tp 1.0.11pre6 and update ChangeLog. 2004-09-03 19:31:10 +00:00
Erik de Castro Lopo
2e9e61e19d Change an unnamed union to a named one and fix resulting problems. 2004-08-29 23:39:24 +00:00
Erik de Castro Lopo
17fc984ba8 Win32 fixes to sndfile-play and build system. 2004-08-20 01:43:02 +00:00
Erik de Castro Lopo
1c23ac2053 Fix type in comments. 2004-08-09 22:39:16 +00:00
Erik de Castro Lopo
1760de3e42 Minor cleanup of tests/(a|u)law_test.c. 2004-07-31 00:51:56 +00:00
Erik de Castro Lopo
1f11db8200 Optimise read/write loops by removing a redundant variable. 2004-07-30 06:04:21 +00:00
Erik de Castro Lopo
14f5539010 Remove call to fsync() in psf_close(). 2004-07-24 09:44:46 +00:00
Erik de Castro Lopo
19ac94edde Update ChangeLog. 2004-07-19 13:04:03 +00:00
Erik de Castro Lopo
99aa3b5b03 Update ChangeLog. 2004-07-17 13:16:29 +00:00
Erik de Castro Lopo
d690e325f9 Update endswapping. 2004-07-17 13:12:54 +00:00
Erik de Castro Lopo
84f62ff08e Use <byteswap.h> if present.
Patches applied:

 * erikd@miles--2004/libsndfile--stable--0--patch-3
   ChangeLog
2004-07-17 12:26:33 +00:00
Erik de Castro Lopo
ca918cd614 ChangeLog 2004-07-02 13:26:46 +00:00
Erik de Castro Lopo
9fec6173f4 Change psf->buffer to a more type safe union.
Patches applied:

 * erikd@miles--2004/libsndfile--stable--0--base-0
   tag of erikd@miles--2004/libsndfile--mdev--1.0--patch-188

 * erikd@miles--2004/libsndfile--stable--0--patch-1
   Merge everything but the Ogg stuff from the --mdev branch.

 * erikd@miles--2004/libsndfile--stable--0--patch-2
   Change psf->buffer to a more type safe union.
2004-07-02 13:20:15 +00:00
Erik de Castro Lopo
f648b57d06 Apply patch to fix playback of mono files on MacOSX. 2004-06-28 09:45:55 +00:00
Erik de Castro Lopo
6ae3bd93af Move copy_metadata() after the second sf_open(). 2004-06-25 10:25:47 +00:00
Erik de Castro Lopo
e2ed4db13a Fix an infinite loop in sndfile-comvert. 2004-06-21 12:30:36 +00:00
Erik de Castro Lopo
d09ab86ff9 Merge Ogg/Annodex stuff from Conrad Parker.
Patches applied:

 * conrad@annodex.net--2004/libsndfile--fishsound--1.0--base-0
   tag of erikd@mega-nerd.com--2004/libsndfile--devel--1.0--patch-1

 * conrad@annodex.net--2004/libsndfile--fishsound--1.0--patch-1
   

 * erikd@mega-nerd.com--2004/libsndfile--devel--1.0--patch-2
   Merge changes from --mdev branch.
2004-06-17 11:56:05 +00:00
Erik de Castro Lopo
1f88fcb276 Fix bug resulting from use of size_t when writing W64 'fmt ' chunk. 2004-06-14 23:38:54 +00:00
Erik de Castro Lopo
8ced05283b Update ChangeLog. 2004-06-14 21:28:29 +00:00
Erik de Castro Lopo
5a1ba58762 Add cast to size_t for some parameters passed to psf_binheader_writef. 2004-06-14 21:23:12 +00:00
Erik de Castro Lopo
54f4cfd1a2 Minor updates in preparation for 1.0.10 release. 2004-06-14 11:54:59 +00:00
Erik de Castro Lopo
4d635a70f6 Update ChangeLog, bump version to 1.0.10pre8, remove mmreg.h. 2004-05-23 04:07:58 +00:00