Commit Graph

998 Commits

Author SHA1 Message Date
Erik de Castro Lopo
f1a8bfafd5 Change way strings are stored in SF_PRIVATE in preparation for
dynamically allocating the storage.
2012-02-04 18:45:12 +11:00
Erik de Castro Lopo
3033376361 Improve encapsulation of string data in SF_PRIVATE. 2012-02-02 21:10:35 +11:00
Erik de Castro Lopo
b5c45de7bc Remove the buffer union from SF_PRIVATE. 2012-02-01 17:47:11 +11:00
Erik de Castro Lopo
7588ad5a55 Put the parselog buffer and the index inside a struct within SF_PRIVATE. 2012-01-31 17:39:04 +11:00
Erik de Castro Lopo
3d46c1f19f Rename logbuffer field of SF_PRIVATE to parselog and reduce its size. 2012-01-31 17:28:16 +11:00
Erik de Castro Lopo
e0671a836c configure.ac : Fix typo, FLAC_CLFAGS -> FLAC_CFLAGS. 2012-01-26 16:21:52 +11:00
Erik de Castro Lopo
f4d1646e5c Fix misleading error message when trying to create an SF_FORMAT_OGG
file with any endian-ness other than SF_ENDIAN_FILE.
2012-01-21 17:46:54 +11:00
Erik de Castro Lopo
2ad57eb9b6 tests/string_test.c : Add tests for extending files in RDWR mode. 2012-01-20 22:46:13 +11:00
Erik de Castro Lopo
4ee03c75e7 Allow files opened in RDWR mode with string data in the tailer to be extended. 2012-01-20 22:46:13 +11:00
Erik de Castro Lopo
eadcab99d4 src/(caf|wav).c : Correct storing of chunk offset. 2012-01-09 22:25:06 +11:00
Erik de Castro Lopo
924a523f12 src/aiff.c : Refactor reading of chunk size and use of psf_store_read_chunk(). 2012-01-09 22:23:03 +11:00
Erik de Castro Lopo
a3218e1aa1 src/sndfile.c : Prevent psf->codec_close() being called more than once. 2012-01-05 18:12:57 +11:00
Erik de Castro Lopo
6f26709560 Test CAF files with custom chunks. 2012-01-05 18:11:15 +11:00
Erik de Castro Lopo
0af17a06f8 src/caf.c : Make custom chunks work for CAF files. 2012-01-05 18:08:52 +11:00
Erik de Castro Lopo
5c66353175 Refactor common code into src/common.h. 2012-01-05 18:08:27 +11:00
Erik de Castro Lopo
6cd40d4776 programs/sndfile-cmp.c : Catch the case where the second file has more frames than the first. 2012-01-04 16:38:19 +11:00
Erik de Castro Lopo
b674397217 src/create_symbols_file.py : Add sf_set_chunk/sf_get_chunk_size/sf_get_chunk_data. 2012-01-02 12:36:24 +11:00
Erik de Castro Lopo
3e48d7f243 src/wav.c : Make custom chunks work on WAV files (includes refactoring). 2011-12-31 23:01:01 +11:00
Erik de Castro Lopo
1ce799c9f3 src/wav.c : Change the way the 'WAVE' chunk is parsed. 2011-12-31 21:35:27 +11:00
Erik de Castro Lopo
f472c9b2c9 Make custom chunks work on AIFF files. 2011-12-31 20:12:51 +11:00
Erik de Castro Lopo
6eb38cdc4b Start working on setting/getting chunks. 2011-12-28 14:13:46 +11:00
Erik de Castro Lopo
6cc206055e src/*.py : Make it work for Python 2 and 3. Thanks Michael. 2011-12-24 08:14:24 +11:00
Erik de Castro Lopo
791db7bed7 src/sndfile.h.in : Add SF_SEEK_SET/CUR/END. 2011-12-19 20:31:19 +11:00
Erik de Castro Lopo
d24ff22aa7 libsndfile.spec.in : Change field name 'URL' to 'Url'. 2011-12-19 20:22:34 +11:00
Erik de Castro Lopo
41da64d927 src/id3.c : Fix a stack overflow when parsing a file with multiple ID3 headers. 2011-11-05 09:49:14 +11:00
Erik de Castro Lopo
04bc10f412 Make (float32|double_64)_(be|le)_read() functions const correct. 2011-10-30 09:59:16 +11:00
Erik de Castro Lopo
952d4e4cd7 Fix compiler warnings with latest MinGW cross compiler. 2011-10-28 19:15:22 +11:00
Erik de Castro Lopo
c23fe74ee6 src/sfendian.h : Minor tweaking of types. 2011-10-28 17:45:58 +11:00
Erik de Castro Lopo
b966c921e2 src/file_io.c : Use the non-deprecated resource fork name on OSX. 2011-10-13 20:54:40 +11:00
Erik de Castro Lopo
d53d575f32 src/wav.c : Jump over the 'olym' chunks when parsing. 2011-10-12 21:56:28 +11:00
Erik de Castro Lopo
3dd9bc6d21 tests/write_read_test.tpl : Remove un-needed windows only truncate() implementation. 2011-10-06 21:23:53 +11:00
Erik de Castro Lopo
835f31e8de tests/write_read_test.tpl : Add tests for 32 bit PCM SD2 files. 2011-09-04 13:47:55 +10:00
Erik de Castro Lopo
d464da7dba configure.ac : Use AC_SYS_LARGEFILE instead of AC_SYS_EXTRA_LARGEFILE. 2011-08-23 20:20:20 +10:00
Erik de Castro Lopo
5983e8ca46 Move ACLOCAL_AMFLAGS setup to Makefile.am. 2011-08-07 19:54:24 +10:00
Erik de Castro Lopo
bbba79eb75 src/paf.c : Replace ppaf24->samplesperblock with a compile time constant. 2011-07-15 19:07:33 +10:00
Erik de Castro Lopo
ad2ca2a182 doc/command.html : Merge two separate blocks of SFC_SET_VBR_ENCODING_QUALITY documentation. 2011-07-15 19:06:40 +10:00
Erik de Castro Lopo
2c4d2bdce6 Updates for 1.0.25. 2011-07-13 21:21:13 +10:00
Erik de Castro Lopo
4e585b5450 src/ogg_vorbis.c : Fix return value of SFC_SET_VBR_ENCODING_QUALITY command. 2011-07-13 21:16:09 +10:00
Erik de Castro Lopo
24fac32d57 Add 'checkprograms' Make target. 2011-07-07 19:47:51 +10:00
Erik de Castro Lopo
ccff89c091 src/sfconfig.h : Add handling for HAVE_SYS_WAIT_H. 2011-07-07 19:39:04 +10:00
Erik de Castro Lopo
603f0fb519 tests/utils.tpl : Clean up use of memset. 2011-07-06 20:12:10 +10:00
Erik de Castro Lopo
fc20f1741c Use calloc instead of malloc followed by memset. 2011-07-06 20:10:40 +10:00
Erik de Castro Lopo
e6175930cd Fix for Secunia Advisory SA45125, heap overflow in PAF file handler. 2011-07-06 19:40:05 +10:00
Erik de Castro Lopo
02004d4290 Purge SF_ASSERT macro. Use standard C assert instead. 2011-07-06 19:28:50 +10:00
Erik de Castro Lopo
a121ba7963 tests/format_check_test.c : Fix compiler warnings. 2011-07-05 19:37:09 +10:00
Erik de Castro Lopo
8fd5fdac1e src/ogg.c : Fix log message. 2011-07-05 19:24:34 +10:00
Erik de Castro Lopo
82ce09ecec Move vorbis specific code to ogg_vorbis.c, add new files for handling PCM
and Speex codecs in an Ogg container. The later two are only enabled with
ENABLE_EXPERIMENTAL_CODE config variable.
2011-07-04 22:00:59 +10:00
Erik de Castro Lopo
58780bc2d4 tests/format_check_test.c : Add a test to for SF_FINFO format field validation. 2011-07-04 19:36:59 +10:00
Erik de Castro Lopo
046be9e6fa src/sndfile.c : Fix error message for erro code SFE_ZERO_MINOR_FORMAT. 2011-07-04 19:34:57 +10:00
Erik de Castro Lopo
7194d455db src/strings.c : Clean up and refactor storage of SF_STR_SOFTWARE. 2011-06-28 18:22:12 +10:00
Erik de Castro Lopo
7e7bd97b6c Fix definition of SF_STR_LAST and update SF_STR_* related docs. 2011-06-23 19:34:33 +10:00
Erik de Castro Lopo
fa0d33f933 src/wav.c : Jump over 'FLLR' chunks. 2011-06-21 20:28:03 +10:00
Erik de Castro Lopo
0198ba1b6e src/wav_w64.c : Accept broken WAV files with blockalign == 0. 2011-06-21 20:07:42 +10:00
Erik de Castro Lopo
19dd992490 programs/sndfile-interleave.c : Fix handling of argc. 2011-06-21 19:27:30 +10:00
Erik de Castro Lopo
2fae56b753 src/ogg.c : Fix -Wundef warning. 2011-06-13 22:15:56 +10:00
Erik de Castro Lopo
1b4b05ae6a configure.ac : Add -Wundef to CFLAGS. 2011-06-13 22:15:06 +10:00
Erik de Castro Lopo
e71a2381f1 src/sndfile.h.in : Fix -Wundef warning due to ENABLE_SNDFILE_WINDOWS_PROTOTYPES. 2011-06-13 22:04:26 +10:00
Erik de Castro Lopo
b16c4a98d7 */Makefile.am : Use check_PROGRAMS instead of noinst_PROGRAMS where appropriate. 2011-05-18 06:34:39 +10:00
Erik de Castro Lopo
ff38eacb92 configure.ac : Use int64_t instead of off_t when they are the same size. 2011-05-18 06:33:28 +10:00
Erik de Castro Lopo
c8225b52e1 src/wav.c : Don't allow unknown and/or un-editable chunks to prevent the file from being opened in SFM_RDWR mode. 2011-05-08 09:52:30 +10:00
Erik de Castro Lopo
837e348993 tests/format_check_test.c : Fix segfault. 2011-05-01 02:42:30 +10:00
Erik de Castro Lopo
2ecc971a2f src/sndfile.c : Fix some sf_format_check() problems. 2011-04-25 20:10:14 +10:00
Erik de Castro Lopo
d01c3c090a Hook new test program into build and test runner. 2011-04-25 20:07:36 +10:00
Erik de Castro Lopo
f27916e62a tests/format_check_test.c : New test program. 2011-04-25 20:05:45 +10:00
Erik de Castro Lopo
fc5b058f9d src/caf.c : Add validation to size of 'data' chunk and fix size of written 'data' chunk. 2011-04-06 19:33:29 +10: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
33cd8bdb46 src/ : Use non-recursive make to build GSM610 and G72x helper libs. 2011-03-25 21:18:23 +11:00
Erik de Castro Lopo
b7212c30fe configure.ac : Sanitize FLAC_CFLAGS value supplied by pkg-config. 2011-03-25 20:42:07 +11:00
Erik de Castro Lopo
4f143688e7 tests/string_test.c : Add test for SF_STR_SOFTWARE segfault bug. 2011-03-25 19:13:51 +11:00
Erik de Castro Lopo
386af45517 src/strings.c : Fix handling of SF_STR_SOFTWARE that resulted in a segfault. 2011-03-25 19:12:24 +11:00
Erik de Castro Lopo
44594192ce tests/utils.tpl : Add NOT macro to util.h. 2011-03-25 18:58:12 +11:00
Erik de Castro Lopo
0772042a68 Updates for release 1.0.24. 2011-03-23 19:35:49 +11:00
Erik de Castro Lopo
760ae8f578 M4/add_(c|cxx)flags.m4 : Test flags in isolation. 2011-03-22 22:44:45 +11:00
Erik de Castro Lopo
99f016ff86 configure.ac : Fix up usage of sed (should not assume GNU sed). 2011-03-22 17:47:01 +11:00
Erik de Castro Lopo
63a49d67ec programs/ : Use Use program_name() where appropriate. Fix build. 2011-03-21 21:17:59 +11:00
Erik de Castro Lopo
7ef22ed2f1 programs/common.[ch] : Add function program_name(). 2011-03-21 21:16:13 +11:00
Erik de Castro Lopo
7cb04151b9 src/wav.c : For u-law and A-law files, write an 18 byte 'fmt ' chunk. 2011-03-20 20:17:54 +11:00
Erik de Castro Lopo
912f139ed9 tests/(alaw|dwvw|ulaw)_test.c : Use functions sf_info_clear() and sf_info_setup(). 2011-03-15 22:10:10 +11:00
Erik de Castro Lopo
02bb6e5a8d doc/api.html : Add documentation for virtual I/O functionality. 2011-03-15 20:55:20 +11:00
Erik de Castro Lopo
c6e84b99bd libsndfile.css.in : Add tweaks for h4 element. 2011-03-15 20:53:26 +11:00
Erik de Castro Lopo
5eef0424e7 doc/FAQ.html : Add examples for question 12. 2011-03-15 20:32:14 +11:00
Erik de Castro Lopo
36c6fe71c1 configure.ac : Fail more gracefully if pkg-config is missing. 2011-03-08 07:04:50 +11:00
Erik de Castro Lopo
8bb0495857 src/common.c : Use size_t instead of int for size params with varargs. 2011-02-27 20:44:02 +11:00
Erik de Castro Lopo
4a7af75fdd doc/index.html : Update supported platforms with more Debian platforms and Android. 2011-02-09 20:48:31 +11:00
Erik de Castro Lopo
15b63dfca8 tests/cpp_test.cc : Add test for LPCWSTR version of the SndfileHandle constructor. 2011-01-27 20:51:09 +11:00
Erik de Castro Lopo
c481b6e553 src/sndfile.hh : Add an LPCWSTR version of the SndfileHandle constructor to the SndfileHandle class definition. 2011-01-27 20:49:30 +11:00
Erik de Castro Lopo
b29ae8abdb programs/sndfile-play.c : Remove cruft. 2011-01-19 21:07:34 +11:00
Erik de Castro Lopo
41c36ef340 tests/cpp_test.cc : Add tests for two new methods. Also supplied by Tim Blechmann. 2010-12-01 19:44:17 +11:00
Erik de Castro Lopo
597b796d60 src/sndfile.hh : Add methods rawHandle() and takeOwnership(). Thanks to Tim Blechmann. 2010-12-01 19:42:54 +11:00
Erik de Castro Lopo
b90f6fb2b0 doc/api.html : Add mention of use of sf_strerror() when sf_open() fails. 2010-11-11 20:02:14 +11:00
Erik de Castro Lopo
5a25432708 src/sndfile.h.in : Fix comments on sf_count_t. 2010-11-01 21:06:49 +11:00
Erik de Castro Lopo
ba3ca03df2 configure.ac : Make TYPEOF_SF_COUNT_T int64_t where possible. 2010-11-01 21:05:22 +11:00
Erik de Castro Lopo
49ba958dd6 Handle non-zero offset field in SSND chunk. 2010-10-26 09:44:37 +11:00
Erik de Castro Lopo
6816f9b2da configure.ac : Sed fix for FreeBSD. Thanks Tony Theodore. 2010-10-20 21:25:06 +11:00
Erik de Castro Lopo
034c20033d Switch from shave to automake-1.11's AM_SILENT_RULES. 2010-10-14 21:06:10 +11:00
Erik de Castro Lopo
04c6142b7d shave.in M4/shave.m4 : Fix shave invocation of windres compiler. 2010-10-14 21:00:24 +11:00
Erik de Castro Lopo
d833c0761b src/rf64.c : More work to make the parser more robust and accepting of mal-formed files. 2010-10-13 20:09:16 +11:00
Erik de Castro Lopo
f64db79782 shave*.in : Sync to upstream version. 2010-10-13 18:26:09 +11:00
Erik de Castro Lopo
7fa1c57c37 src/rf64.c : Fix size of 'ds64' chunk when writing RF64. 2010-10-12 21:20:33 +11:00
Erik de Castro Lopo
5f5bbb50d4 tests/string_test.c : Add tests for SF_STR_GENRE and SF_STR_TRACKNUMBER. 2010-10-12 20:26:34 +11:00
Erik de Castro Lopo
43eba45a81 src/ : Use functions psf_strlcpy() and psf_strlcat() as appropriate. 2010-10-12 19:50:26 +11:00
Erik de Castro Lopo
ca0c4b82a5 src/common.h : Add functions psf_strlcpy() and psf_strlcat(). 2010-10-12 19:47:08 +11:00
Erik de Castro Lopo
565e1c0fe1 programs/*.c : Add the libsndfile version to the usage message of all programs. 2010-10-11 20:33:52 +11:00
Erik de Castro Lopo
08d35de4cd Updates for 1.0.23 release. 2010-10-10 15:31:23 +11:00
Erik de Castro Lopo
c4491c45eb doc/api.html : Update to add missing SF_FORMAT_* values. Closed Debian bug #545257. 2010-10-10 14:13:39 +11:00
Erik de Castro Lopo
84d1393898 Add version string resources to the windows DLL. 2010-10-10 12:43:08 +11:00
Erik de Castro Lopo
08f50fb701 src/ : Use python 2.6. 2010-10-09 23:34:15 +11:00
Erik de Castro Lopo
2fe4f99771 src/rf64.c : Minor tweaks and additional sanity checking. 2010-10-09 16:45:05 +11:00
Erik de Castro Lopo
9286b2c335 tests/pedantic-header-test.sh.in : Handle unusual values of CC environment variable. 2010-10-09 16:44:33 +11:00
Erik de Castro Lopo
c0dc34eb1a src/sndfile.hh : Add a missing 'inline' before a constructor defintion. 2010-10-08 18:43:25 +11:00
Erik de Castro Lopo
c114f21ecf Makefile.am : Add *~ to CLEANFILES. 2010-10-06 22:16:41 +11:00
Erik de Castro Lopo
76d95ca6c3 src/rf64.c : Minor tweaks. 2010-10-06 21:26:55 +11:00
Erik de Castro Lopo
264db5bc6a src/common.h : Add macro NOT. 2010-10-06 19:40:51 +11:00
Erik de Castro Lopo
6c5bc2fe8e src/sndfile.c : Fix a typo in the error string for SFE_OPEN_PIPE_RDWR. 2010-10-05 19:24:29 +11:00
Erik de Castro Lopo
179f745ab3 Add function psf_safe_strncpy() to common.h and use as appropriate. 2010-10-04 22:20:00 +11:00
Erik de Castro Lopo
01605fd4ca src/ : Add ability to read/write tracknumber and genre to flac/ogg/wav files. 2010-10-04 21:55:15 +11:00
Erik de Castro Lopo
98b5b70635 Release 1.0.22. 2010-10-04 11:39:47 +11:00
Erik de Castro Lopo
76bc251810 src/test_broadcast_var.c : Fix OSX stack check error. 2010-10-03 21:51:28 +11:00
Erik de Castro Lopo
229e66bfb0 Tweak SF_BROADCAST_INFO tests. 2010-10-03 20:48:43 +11:00
Erik de Castro Lopo
036980c71a src/ : Rewrite of SF_BROADCAST_INFO handling. 2010-10-03 20:47:27 +11:00
Erik de Castro Lopo
ed5fee79a3 src/sds.c : Set sustain_loop_end to 0 as suggested by Brian Lewis. 2010-09-30 18:04:58 +10:00
Erik de Castro Lopo
9fc3c09c85 tests/write_read_test.tpl : Don't allow SDS files to have a long frame count. 2010-09-29 20:41:03 +10:00
Erik de Castro Lopo
75c3f5873a src/sds.c : Make sure the correct frame count gets written into the header. 2010-09-29 20:37:59 +10:00
Erik de Castro Lopo
1efce8d823 src/sds.c : Fix the packet number location and the checksum. 2010-09-17 19:05:55 +10:00
Erik de Castro Lopo
8deeb575a8 Fix a bunch of minor issues found using static analysis. 2010-09-10 18:33:27 +10:00
Erik de Castro Lopo
71213e1a7e Add file containing tests for broadcast_set_var(). 2010-08-23 22:02:25 +10:00
Erik de Castro Lopo
c76d613445 Add file src/test_strncpy_crlf.c and hook into build/tests. 2010-08-22 20:41:54 +10:00
Erik de Castro Lopo
c67942ea42 Move function strncpy_crlf() to src/common.c so the function can be tested in isolation. 2010-08-22 20:36:37 +10:00
Erik de Castro Lopo
1977dfa133 src/broadcast.c : Add debugging code that is disabled by default. 2010-08-18 20:16:05 +10:00
Erik de Castro Lopo
b7e1eb5b86 src/common.h : Move code around to make comments make sense. 2010-08-18 20:14:09 +10:00
Erik de Castro Lopo
e00521cea3 programs/sndfile-info.c : Print 'unknown' if frame count == SF_COUNT_MAX. 2010-08-02 19:23:03 +10:00
Erik de Castro Lopo
3dcda1f0aa src/flac.c : Handle case when file meta data says file has zero length. 2010-08-02 19:22:08 +10:00
Erik de Castro Lopo
b809328af9 src/file_io.c : Don't call close() on a file descriptor of -1. 2010-06-27 17:23:25 +10:00
Erik de Castro Lopo
ba6b4af0ea Add support for reading and writing stereo SVX files. 2010-06-09 21:27:14 +10:00
Erik de Castro Lopo
087e346c9e src/sndfile.c : Use SF_ASSERT to ensure sizeof (sf_count_t) == 8. 2010-06-09 20:48:12 +10:00
Erik de Castro Lopo
58f9151396 src/common.h : Add macro SF_ASSERT. 2010-06-09 20:47:07 +10:00
Erik de Castro Lopo
70b4f49f85 programs/ : Update metadata after the audio data is copied. Other minor fixes. Patch from Marius Hennecke. 2010-05-07 22:10:58 +10:00
Erik de Castro Lopo
3eb6954930 configure.ac : When compiling with x86_64-w64-mingw32-gcc link with -static-libgcc flags. 2010-05-07 21:42:14 +10:00
Erik de Castro Lopo
e16eb7a31f doc/api.html : Add comment about sf_open_fd() not working on Windows. 2010-05-04 19:36:21 +10:00
Erik de Castro Lopo
aa7b231ded src/nist.c : Fix a regression reported by Hugh Secker-Walker. 2010-05-04 19:34:52 +10:00
Erik de Castro Lopo
fac9e4a9d7 tests/pedantic-header-test.sh.in : Fix 'make distcheck'. 2010-04-23 21:46:00 +10:00
Erik de Castro Lopo
9bf0d1b0c5 src/sndfile.h.in : Fix -pedantic warning. 2010-04-21 18:21:44 +10:00
Erik de Castro Lopo
66f6e6cae7 Hook pedantic-header-test into test suite. 2010-04-21 18:17:45 +10:00
Erik de Castro Lopo
d1484cf543 tests/pedantic-header-test.sh.in : New file to test whether sndfile.h can be compiled with gcc's -pedantic flag. 2010-04-21 18:13:26 +10:00
Erik de Castro Lopo
8cabcb3522 New file programs/sndfile-salvage.c. 2010-04-20 21:31:00 +10:00
Erik de Castro Lopo
9797423621 programs/sndfile-convert.c : Fix valgrind warning. 2010-04-09 20:17:49 +10:00
Erik de Castro Lopo
6189d83f31 programs/sndfile-cmp.c : When files differ in the PCM data, also print the difference offset. 2010-04-06 09:47:44 +10:00
Erik de Castro Lopo
a419fbba27 src/aiff.c : Don't use the 'twos' marker for 24 and 32 bit PCM, use 'in24' and 'in32' instead. 2010-03-19 21:55:49 +11:00
Erik de Castro Lopo
b7f1dde2d6 tests/test_wrapper.sh.in : Add rdwr_test to the test wrapper script. 2010-02-28 14:14:23 +11:00
Erik de Castro Lopo
68d2ffc36a src/sndfile.c : ix minor issues with sf_read/write_raw(). Bug reported by Milan Krapek. 2010-02-28 14:08:50 +11:00