2011-07-05 Erik de Castro Lopo
* src/paf.c src/common.h src/sndfile.c
Fix for Secunia Advisory SA45125, heap overflow (heap gets overwritten with
byte value of 0) due to integer overflow if PAF file handler.
2009-05-14 Erik de Castro Lopo
* src/common.h src/test_conversions.c
Be more careful when including so compiling on pre-C99 platforms
(hello Slowlaris) might actually work.
* NEWS README doc/*.html
Updates for 1.0.20.
2009-04-21 Erik de Castro Lopo
* src/voc.c
Fix a bug whereby opening a specially crafted VOC file could result in a
heap overflow. Thanks to Tobias Klein (http://www.trapkit.de) for reporting
this issue.
* src/aiff.c
Fix potential (heap) buffer overflow when parsing 'MARK' chunk.
2009-04-12 Erik de Castro Lopo
* tests/stdin_test.c
Check psf->error after opening file.
* src/file_io.c
Fix obscure seeking bug reported by Hugh Secker-Walker.
* tests/utils.tpl
Add check of sf_error to test_open_file_or_die().
* src/sndfile.c
Clear error if opening resource fork fails.
2009-04-11 Erik de Castro Lopo
* tests/alaw_test.c tests/locale_test.c tests/ulaw_test.c
Cleanup output.
2009-03-25 Erik de Castro Lopo
* src/float32.c
Fix f2s_clip_array.
2009-03-24 Erik de Castro Lopo
* src/float32.c
In host_read_f2s call convert instead of f2s_array.
* src/ima_adpcm.c
Remove dead code.
* src/test_ima_oki_adpcm.c examples/generate.c tests/dither_test.c
tests/dwvw_test.c tests/fix_this.c tests/generate.c
tests/multi_file_test.c
Minor fixes.
2009-03-23 Erik de Castro Lopo
* M4/shave.m4 shave.in
Pulled update from upstream.
2009-03-19 Erik de Castro Lopo
* doc/api.html
Add pointers to example programs in source code tarball.
2009-03-17 Erik de Castro Lopo
* src/common.h
Define SF_PLATFORM_S64 for non-gcc compilers with 'long long' type.
* configure.ac
Add documentation for --disable-external-libs and improve error handling
for that option.
* src/sndfile.c src/sndfile.h.in src/create_symbols_file.py
Add public function sf_version_string.
* tests/sfversion.c
Test function sf_version_string.
* M4/shave.m4 shave-libtool.in shave.in
Add new files from 'git clone git://git.lespiau.name/shave'.
* configure.ac
Enable shave.
* src/Makefile.am src/binheader_writef_check.py Octave/*
Shave related tweaks.
2009-03-15 Erik de Castro Lopo
* src/common.h src/caf.c src/sndfile.c
Add SF_MAX_CHANNELS (set to 256) and use it.
* src/sndfile.h.in
Check for either _MSCVER or _MSC_VER being defined.
2009-03-04 Erik de Castro Lopo
* tests/vorbis_test.c
Relax test slighly to allow test to pass on more CPUs etc.
2009-03-03 Erik de Castro Lopo
* configure.ac
Detect vorbis_version_string() correctly.
2009-03-02 Erik de Castro Lopo
* doc/index.html
Add a 'See Also' section with a link to sndfile-tools.
* NEWS README doc/*.html
Updates for 1.0.19 release.
* configure.ac
Fix --enable-external-libs logic.
2009-03-01 Erik de Castro Lopo
* src/aiff.c
Fix resource leak and potential read beyond end of buffer.
* src/nist.c
Fix reading of header value sample_n_bytes.
* src/sd2.c src/wav.c
Fix potential read beyond end of buffer.
* src/sndfile.c src/svx.c
Check return values of file_io functions.
* tests/win32_test.c
Fix resource leak.
* configure.ac
Detect the presence/absence of vorbis_version_string() in libvorbis.
* src/ogg.c
Only call vorbis_version_string() from libvorbis if present.
2009-02-24 Erik de Castro Lopo
* tests/win32_test.c
Don't use sprintf, even on windows.
* src/aiff.c src/rf64.c src/wav.c
Eliminate dead code, more validation of data read from file.
2009-02-22 Erik de Castro Lopo
* src/ima_adpcm.c
Clamp values to a valid range before indexing ima_step_size array.
* src/GSM610/*.c tests/*c programs/*.c src/audio_detect.c
Don't include un-needed headers.
* programs/sndfile-info.c
Remove dead code.
* tests/test_wrapper.sh.in
Add 'set -e' so the script exits on error.
* src/test_ima_oki_adpcm.c
Fix read beyond end of array.
* tests/win32_test.c
Add missing close on file descriptor.
* src/nist.c programs/sndfile-metadata-set.c
Fix 'unused variable' warnings.
* src/aiff.c
Fix potential memory leak in handling of 'MARK' chunk.
Remove un-needed test (unsigned > 0).
* src/sd2.c
Improve handling of heap allocated buffer.
* src/sndfile.c
Remove un-needed test (always true).
* src/wav.c src/rf64.c
Ifdef out dead code that will be resurected some time in the future.
* src/wav.c src/w64.c src/xi.c
Handle error return values from psf_ftell.
* src/wav_w64.c
Fix handling and error checking of MSADPCM coefficient arrays.
* regtest/*.c
Bunch of fixes.
* src/test_file_io.c
Use snprintf instead of strncpy in test program.
2009-02-21 Erik de Castro Lopo
* src/sd2.c
Validate data before using.
* src/caf.c
Validate channels per frame value before using, fixing a possible integer
overflow bug, leading to a possible heap overflow. Found by Alin Rad Pop of
Secunia Research (CVE-2009-0186).
2009-02-20 Erik de Castro Lopo
* Octave/octave_test.sh
Unset TERM environment variable and export LD_LIBRARY_PATH.
2009-02-16 Erik de Castro Lopo
* src/file_io.c
In windows code, cast LPVOID to 'char*' in printf.
2009-02-15 Erik de Castro Lopo
* M4/octave.m4
Clear the TERM environment before evaluating anything in Octave. This works
around problems that might occur if a users TERM settings are incorrect.
Thanks to Rob Til Freedmen for helping to debug this.
* src/wav.c
Handle four zero bytes as a marker within a LIST or INFO chunk.
Thanks to Rogério Brito for supplying an example file.
2009-02-14 Erik de Castro Lopo
* src/common.h src/*.c
Use C99 snprintf everywhere.
2009-02-11 Erik de Castro Lopo
* tests/test_wrapper.sh.in
New file to act as the template for the test wrapper script.
* configure.ac
Generate tests/test_wrapper.sh from the template.
* tests/Makefile.am
Replace all tests with a single invocation of the test wrapper script.
2009-02-09 Erik de Castro Lopo
* src/ogg.c
Record vorbis library version string.
* configure.ac
Require libvorbis >= 1.2.2.
* M4/endian.m4
Fix bracketing of function for autoconf 2.63. Thanks to Richard Ash.
* M4/octave.m4 M4/mkoctfile_version.m4
Clean up AC_WITH_ARG usage using AC_HELP_STRING.
2009-02-08 Erik de Castro Lopo
* Octave/Makefile.am
Use $(top_buildir) instead of $(builddir) which may not be defined.
* M4/octave.m4
Improve logic and status reporting.
2009-02-07 Erik de Castro Lopo
* configure.ac AUTHORS NEWS README doc/*.html
Final tweaks for 1.0.18 release.
2009-02-03 Erik de Castro Lopo
* programs/sndfile-convert.c
Add 'htk' to the list of convert formats.
* programs/sndfile-info.c
Simplify get_signal_max using SFC_CALC_SIGNAL_MAX command.
Increase size of files for which signal max will be calculated.
2009-01-14 Erik de Castro Lopo
* doc/index.html
Fix links for SoX and WavPlay. Thanks to Daniel Griscom.
2009-01-11 Erik de Castro Lopo
* programs/sndfile-metadata-get.c
Make valgrind clean.
Clean up temp string array usage.
Error out if trying to update coding history in RDWR mode.
2009-01-10 Erik de Castro Lopo
* doc/index.html
Fix links to versions of the LGPL.
2008-12-14 Erik de Castro Lopo
* tests/string_test.c
Add test for RDWR mode where the file ends up shorter than when it was
opened.
* src/wav.c
Truncate the file on close for RDWR mode where the file ends up shorter
than when it was opened.
2008-11-30 Erik de Castro Lopo
* M4/add_cflags.m4
Fix problem with quoting of '#include'.
* M4/add_cxxflags.m4 configure.ac
Add new file M4/add_cxxflags.m4 and use it in configure.ac.
2008-11-19 Erik de Castro Lopo
* programs/sndfile-info.c
Apply patch from Conrad Parker to calculate and display total duration when
more than one file is dumped.
2008-11-10 Erik de Castro Lopo
* configure.ac src/Makefile.am
Tweaks to generation of Symbols files.
* tests/win32_ordinal_test.c
Update tests for above changes.
2008-11-06 Erik de Castro Lopo
* programs/common.c
When merging broadcast info, make sure to clear the destination field
before copying in the new data.
* programs/test-sndfile-metadata-set.py
Add test for the above.
* src/broadcast.c
Fix checking of required coding_history_size.
2008-10-28 Erik de Castro Lopo
* tests/command_test.c
Add test to detect if coding history is truncated.
* src/broadcast.c
Fix truncation of coding history.
2008-10-27 Erik de Castro Lopo
* tests/command_test.c
Add broadcast_coding_history_size test.
* programs/*.[ch]
Use SF_BROADCAST_INFO_VAR to manipulate larger 'bext' chunks.
* src/rf64.c
Add code to prevent infinite loop on malformed file.
* src/common.h src/sndfile.c src/w64.c src/wav_w64.c
Rationalize and improve error handling when parsing 'fmt ' chunk.
* M4/octave.m4
Simplify and remove cruft.
Check for correct Octave version.
* Octave/*
Reduce 3 C++ files to one, fix build for octave 3.0, fix build.
* Octave/sndfile.cc Octave/PKG_ADD
Add Octave function sfversion which returns the libsndfile version that the
module is linked against.
* Octave/Makefile.am
Bunch of build and 'make distcheck' fixes.
2008-10-26 Erik de Castro Lopo
* programs/common.c
Return 1 if SFC_SET_BROADCAST_INFO fails.
* programs/test-sndfile-metadata-set.py
Update for new programs directory, exit on any error.
* tests/error_test.c
Fix failure behaviour in error_number_test.
* src/common.h src/sndfile.c
Add error number SFE_BAD_BROADCAST_INFO_SIZE.
* src/*
Reimplement handling of broadcast extentioon chunk in WAV/WAVEX files.
* src/broadcast.c
Fix generation of added coding history.
2008-10-25 Erik de Castro Lopo
* programs/sndfile-metadata-get.c programs/sndfile-info.c
Exit with non-zero on errors.
2008-10-21 Erik de Castro Lopo
* examples/sndfile-to-text.c examples/Makefile.am
Add a new example program and hook it into the build.
* examples/ programs/
Add a new directory programs and move sndfile-info, sndfile-play and other
real programs to the new directory, leaving example programs where they
were.
2008-10-20 Erik de Castro Lopo
* tests/Makefile.am
Automake 1.10 MinGW cross compiling fixes.
2008-10-19 Erik de Castro Lopo
* examples/sndfile-play.c
Remove call to deprecated function snd_pcm_sw_params_get_xfer_align.
Fix gcc-4.3 compiler warnings.
* tests/command_test.c
Fix a valgrind warning.
* tests/error_test.c tests/multi_file_test.c tests/peak_chunk_test.c
tests/pipe_test.tpl tests/stdio_test.c tests/win32_test.c
Fix gcc-4.3 compiler warnings.
2008-10-17 Erik de Castro Lopo
* src/broadcast.c
Fix termination of desitination string in strncpy_crlf.
When copying BROADCAST_INFO chunk, make sure destination gets correct line
endings.
* examples/common.c
Fix copying of BROADCAST_INFO coding_history field.
2008-10-13 Erik de Castro Lopo
* tests/command_test.c
Add test function instrument_rw_test, but don't hook it into the testing
yet.
* src/common.h src/command.c src/sndfile.c src/flac.c
Error code rationalization.
* src/common.h src/sndfile.c
Set psf->error to SFE_CMD_HAS_DATA when adding metadata via sf_command()
fails due to psf->have_written being true.
* doc/command.html
Document the SFC_GET/SET_BROADCAST_INFO comamnds.
2008-10-10 Erik de Castro Lopo
* tests/command_test.c
Improve error reporting when '\0' is found in coding history.
Fix false failure.
2008-10-09 Erik de Castro Lopo
* src/broadcast.c
Convert all coding history line endings to \r\n.
* tests/command_test.c
Add test to make sure all line endings are converted to \r\n.
2008-10-08 Erik de Castro Lopo
* src/broadcast.c
Changed the order of coding history fields.
* tests/command_test.c
Update bextch test to cope with previous change.
* examples/common.c
Add extra length check when copying broadcast info data.
2008-10-05 Erik de Castro Lopo
* tests/utils.tpl tests/pcm_test.tpl
Update check_file_hash_or_die to use 64 bit hash.
* tests/checksum_test.c tests/Makefile.am
Add new checksum_test specifically for lossy compression of headerless
files.
2008-10-04 Erik de Castro Lopo
* src/gsm610.c
Seek to psf->dataoffset before decoding first block.
* src/sndfile.c
Fix detection of mpc2k files on big endian systems.
2008-10-03 Erik de Castro Lopo
* src/broadcast.c
Use '\r\n' newlines in Coding History as required by spec.
2008-10-02 Erik de Castro Lopo
* src/test_conversions.c
Use int64_t instead of 'long long'.
2008-10-01 Erik de Castro Lopo
* examples/sndfile-metadata-set.c
Remove --bext-coding-history-append command line option because it didn't
really make sense.
* examples/sndfile-metadata-(get|set).c
Add usage messages.
* examples/test-sndfile-metadata-set.py
Start work on test coding history.
2008-09-30 Erik de Castro Lopo
* README doc/win32.html
Bring these up to date.
* src/aiff.c
Fix parsing of REX files.
2008-09-29 Erik de Castro Lopo
* src/file_io.c
Use intptr_t instead of long for return value of _get_osfhandle.
* src/test_conversions.c src/test_endswap.tpl
Fix printing of int64_t values.
* examples/sndfile-play.c
Fix win64 issues.
* tests/win32_ordinal_test.c
Fix calling of GetProcAddress with ordinal under win64.
* tests/utils.tpl
Fix win64 issues.
2008-09-25 Erik de Castro Lopo
* examples/*
Rename copy_data.[ch] to common.[ch]. Fix build.
Move code from sndfile-metadata-set.c to common.c.
* examples/Makefile.am tests/Makefile.am regtest/Makefile.am
Clean paths.
2008-09-19 Erik de Castro Lopo
* doc/tutorial.html doc/Makefile.am
Add file doc/tutorial.html and hook into build/dist system.
2008-09-14 Erik de Castro Lopo
* examples/sndfile-metadata-set.c
Clean up handling of bext command line params.
2008-09-13 Erik de Castro Lopo
* src/w64.c
Add handling/skipping of a couple of new chunk types.
2008-09-09 Erik de Castro Lopo
* configure.ac
Add -funsigned-char to CFLAGS if the compiler supports it.
* examples/sndfile-metadata-(get|set).c
Add handling for more metadata types.
2008-09-04 Erik de Castro Lopo
* src/common.h
Add macros SF_CONTAINER, SF_CODEC and SF_ENDIAN useful for splitting format
field of SF_INFO into component parts.
* src/*.c
Use new macros everywhere it is appropriate.
2008-09-02 Erik de Castro Lopo
* examples/sndfile-bwf-set.c
Massive reworking.
2008-08-24 Erik de Castro Lopo
* examples/sndfile-bwf-set.c
Add --info-auto-create-date command line option.
* examples/sndfile-metadata-set.c examples/sndfile-metadata-get.c
examples/Makefile.am examples/test-sndfile-bwf-set.py
Rename sndfile-bwf-(set|get).c to sndfile-metadata-(set|get).c.
Change command line args.
2008-08-23 Erik de Castro Lopo
* src/wav.c
Allow 'PAD ' chunk to be modified in RDWR mode.
* src/sndfile.h.in src/sndfile.c
Add handling (incomplete) for SFC_SET_ADD_HEADER_PAD_CHUNK.
* tests/Makefile.am tests/write_read_test.tpl tests/header_test.tpl
tests/misc_test.c
Add tests for RF64.
* src/rf64.c
Fixes to make sure all tests pass.
* tests/Makefile.am tests/string_test.c
Add string tests (not yet passing).
2008-08-22 Erik de Castro Lopo
* src/rf64.c
First pass at writing RF64 now working.
2008-08-21 Erik de Castro Lopo
* examples/sndfile-convert.c
Add SF_FORMAT_RF64 to format_map.
* src/common.h src/sndfile.c
More RF64 support code.
* examples/sndfile-bwf-set.c
Fix the month number in autogenerated date string and use hypen in date
instead of slash.
* examples/test-sndfile-bwf-set.py
Update tests.
* examples/sndfile-info.c
When called with -i or -b option, operate on all files on command line, not
just the first.
2008-08-19 Erik de Castro Lopo
* src/rf64.c
New file to handle RF64 (WAV like format supportting > 4Gig files).
* src/sndfile.h.in src/common.h src/sndfile.c src/Makefile.am
Hook the above into build so hacking can begin.
* src/pcm.c
Improve log message when pcm_init fails.
* src/sndfile-info.c
Only calculate and print 'Signal Max' if file is less than 10 megabytes in
length.
2008-08-18 Erik de Castro Lopo
* tests/string_test.c
Polish string_multi_set_test.
* src/wav.c
In RDWR mode, pad the header if necessary (ie LIST chunk has moved or
length has changed).
Minor fixes in wav_write_strings.
Write PAD chunk with default endian-ness, not a specific endian-ness.
* examples/test-sndfile-bwf-set.py
Add Python script to test sndfile-bwf-set/get.
* examples/sndfile-bwf-set.c
Clean up and fixes.
* src/wav.c
Merge function wavex_write_header into wav_write_header, deleting about 70
lines of code.
* src/common.h
Double value of SF_MAX_STRINGS.
* tests/string_test.c
Add string tests for WAVEX and RIFX files.
* tests/command_test.c
Add broadcast test for WAVEX files.
2008-08-17 Erik de Castro Lopo
* tests/string_test.c
Add a new string_rdwr_test (currently failing for WAV).
Add a new string_multi_set_test (currently failing).
* tests/command_test.c
Add new broadcast_rdwr_test (currently failing).
* src/wav.c
Fix to WAV parser to allow 'bext' chunk to be updated in place.
In wav_write_tailer, seek to psf->dataend if its greater than zero.
* src/sndfile.c
Make sure psf->have_written gets set correctly in mode SFM_RDWR.
* configure.ac
Test for and gettimeofday.
* src/common.c
Use gettimeofday() to initialize psf_rand_int32.
* src/common.h src/sndfile.c
Add unique_id field to SF_PRIVATE struct.
* src/common.h src/sndfile.c src/wav.c src/wav_w64.[ch]
Move wavex_ambisonic field from SF_PRIVATE struct to WAV_PRIVATE struct.
* src/common.h src/strings.c
Add function psf_location_string_count.
2008-08-16 Erik de Castro Lopo
* configure.ac
Test for localtime and localtime_r.
* examples/sndfile-convert.c
In function copy_metadata(), copy broadcast info if present.
* examples/copy_data.[ch] examples/Makefile.am
Break some functionality out of sndfile-convert.c so it can be used in
examples/sndfile-bwf-set.c.
* tests/utils.tpl
Add new function create_short_sndfile().
* examples/sndfile-bwf-set.c examples/sndfile-bwf-get.c
examples/Makefile.am
Add new files and hook into build.
2008-08-11 Erik de Castro Lopo
* src/sndfile.h.in
Fix comments. Patch from Mark Glines.
2008-07-30 Erik de Castro Lopo
* tests/misc_test.c
Use zero_data_test on Ogg/Vorbis files.
* src/ogg.c
Fix segfault when closing an Ogg/Vorbis file that has been opened for write
but had no actual data written to it. Bug reported by Chinoy Gupta.
* tests/Makefile.am
Make sure to run mist_test on Ogg/Vorbis files.
2008-07-19 Erik de Castro Lopo
* regtest/Makefile.am
Use SQLITE3_CFLAGS to locate sqlite headers.
2008-07-10 Erik de Castro Lopo
* doc/index.html doc/FAQ.html
Add notes about which versions of windows libsndfile works on.
2008-07-03 Erik de Castro Lopo
* tests/misc_test.c
Add a test for correct handling of Ambisonic files. Thanks to Fons
Adriaensen for the test.
* src/wav.c src/wav_w64.c
Fix handling of Ambisonic files. Thanks to Fons Adriaensen for the patch.
2008-06-29 Erik de Castro Lopo
* configure.ac
Fix detection/enabling of external libs.
* M4/extra_pkg.m4 M4/Makefile.am
Add m4 macro PKG_CHECK_MOD_VERSION which is a hacked version
PKG_CHECK_MODULES. The new macro prints the version number of the package
it is searching for.
2008-06-14 Erik de Castro Lopo
* src/aiff.c
Apply a fix from Axel Roebel where if the second loop in the instrument
chunk is none, the loop mode is written into the first loop.
2008-05-31 Erik de Castro Lopo
* src/test_float.c src/test_main.(c|h) src/Makefile.am
Add new file to test functions float32_(le|be)_(read|write) and
double64_(le|be)_(read|write). Hook into build and testsuite.
* src/double64.c src/float32.c
Fix bugs in functions found by test added above. Thanks to Nicolas Castagne
for reporting this bug.
* src/sndfile.h.in
Change time_reference_(low|high) entries of SF_BROADCAST_INFO struct to
unsigned.
* examples/sndfile-info.c
Print out the BEXT time reference in a sensible format.
2008-05-21 Erik de Castro Lopo
* src/*.c
Fuzz fixes.
* src/ogg.c
Add call to ogg_stream_clear to fix valgrind warning.
* src/aiff.c
Fix x86_64 compile issue.
* configure.ac src/Makefile.am src/flac.c src/ogg.c
Link to external versions of FLAC, Ogg and Vorbis.
* tests/lossy_comp_test.c tests/ogg_test.c tests/string_test.c
tests/vorbis_test.c tests/write_read_test.tpl
Fix tests when configured with --disable-external-libs.
* tests/external_libs_test.c tests/Makefile.am
Add new test and hook into build and test suite.
* src/command.c
Use HAVE_EXTERNAL_LIBS to ensure that the SFC_GET_FORMAT_* commands return
the right data when external libs are disabled.
2008-05-11 Erik de Castro Lopo
* tests/write_read_test.tpl
Add a test for extending a file during write by seeking past the current
end of file.
* src/sndfile.c
Allow seeking past end of file during write.
2008-05-10 Erik de Castro Lopo
* doc/api.html doc/command.html
Move all information about the sf_command function to command.html and add
a link from documentation of the sf_read/write_raw function to the
SFC_RAW_NEEDS_ENDSWAP command.
* doc/index.html doc/FAQ.html doc/libsndfile.css
Minor documentation tweaks.
2008-05-09 Erik de Castro Lopo
* configure.ac
Add AM_PROG_CC_C_O.
2008-04-27 Erik de Castro Lopo
* tests/error_test.c
Add a test to make sure if file opened with sf_open_fd, and then the file
descriptor is closed, then sf_close will return an error code. Thanks to
Dave Flogeras for the bug report.
* src/sndfile.c
Make sf_close return an error is the file descriptor is already closed.
2008-04-19 Erik de Castro Lopo
* configure.ac
Set object format to aout for OS/2. Thanks to David Yeo.
* src/mpc2k.c src/sndfile.c src/sndfile.h.in src/common.h src/Makefile.am
Add ability to read MPC 2000 file.
* tests/write_read_test.tpl tests/misc_test.c tests/header_test.tpl
tests/Makefile.am
Add tests for MPC 2000 file format.
* examples/sndfile-convert.c
Allow conversion to MPC 2000 file format.
2008-04-17 Erik de Castro Lopo
* src/VORBIS/lib/codebook.c
Sync from upstream SVN.
* autogen.sh configure.ac
Minor tweaks.
2008-04-13 Erik de Castro Lopo
* src/ogg.c
Add a patch that fixes finding the length in samples of an Ogg/Vorbis file.
The patch as supplied segfaulted and required many hours of debugging.
* src/OGG/bitwise.c
Sync from upstream SVN.
2008-04-09 Erik de Castro Lopo
* src/aiff.c
Fix up handling of 'APPL' chunk. Thanks to Axel Roebel for bringing up
this issue.
2008-04-06 Erik de Castro Lopo
* tests/*.c
Add calls to sf_close() where needed.
* tests/utils.tpl tests/multi_file_test.c
Always pass 0 as the third argument to open when OS_IS_WIN32.
2008-04-03 Erik de Castro Lopo
* src/test_*
Add files test_main.[ch].
Collapse all tests into a single executable.
2008-03-30 Erik de Castro Lopo
* src/FLAC
Sync to upstream CVS.
2008-03-25 Erik de Castro Lopo
* src/common.h
Make SF_MIN and SF_MAX macros MinGW friendly.
* examples/sndfile-(info|play).c
Use Sleep function from instead of _sleep.
* tests/locale_test.c
Disable some tests when OS_IS_WIN32.
* src/FLAC/src/share/replaygain_anal/replaygain_analysis.c
src/FLAC/src/share/utf8/utf8.c
MinGW fixes.
2008-03-11 Erik de Castro Lopo
* doc/FAQ.html
Tweaks to pcm16 <-> float conversion answer.
2008-02-10 Erik de Castro Lopo
* src/OGG
Sync to SVN upstream.
* Makefile.am
Add 'DISTCHECK_CONFIGURE_FLAGS = --enable-gcc-werror'.
2008-02-05 Erik de Castro Lopo
* examples/sndfile-jackplay.c
Minor tweaks to warning message printed when compiled without libjack.
2008-01-27 Erik de Castro Lopo
* tests/peak_chunk_test.c
Improve read_write_peak_test to find more errors. Inspired by example
provided by Nicolas Castagne.
* src/aiff.c
Another SFM_RDWR fix shown up by above test.
2008-01-24 Erik de Castro Lopo
* src/aiff.c
Fix reading of COMM encoding string.
* src/chunk.c src/common.h src/Makefile.am
New file for storing and retrieving info about header chunks. Hook into
build.
* src/aiff.c
Use new chunk logging to fix problem with AIFF in RDWR mode.
2008-01-22 Erik de Castro Lopo
* src/command.c
Add WVE to the list of major formats.
* tests/aiff_rw_test.c
Fix error reporting.
2008-01-21 Erik de Castro Lopo
* src/common.[ch]
Add internal functions str_of_major_format, str_of_minor_format,
str_of_open_mode and str_of_endianness.
* tests/write_read_test.tpl
Fix reporting of errors in new_rdwr_XXXX_test.
2008-01-20 Erik de Castro Lopo
* examples/sndfile-play.c
Apply patch from Yair K. to fix compiles with OSS v4.
* src/common.h src/float32.c src/double64.c
Rename psf->float_enswap to psf->data_endswap.
* src/sndfile.h.in src/sndfile.c src/pcm.c
Add command SFC_RAW_NEEDS_ENDSWAP.
* tests/command.c
Add test for SFC_RAW_NEEDS_ENDSWAP.
* doc/command.html
Document SFC_RAW_NEEDS_ENDSWAP.
* tests/peak_chunk_test.c
Add test function read_write_peak_test. Thanks to Nicolas Castagne for the
bug report.
2008-01-09 Erik de Castro Lopo
* examples/sndfile-cmp.c
Add new example program contributed by Conrad Parker.
* examples/Makefile.am
Hook into build.
* doc/development.html
Change use or reconfigure.mk to autogen.sh.
2008-01-08 Erik de Castro Lopo
* tests/win32_test.c
Add another win32 test.
* tests/util.tpl
Add function file_length_fd which wraps fstat.
* tests/Makefile.am
Run the multi_file_test on AU files.
* tests/multi_file_test.c
Use function file_length_fd() instead of file_length() to overcome stupid
win32 bug. Fscking hell Microsoft sucks so much.
2008-01-05 Erik de Castro Lopo
* src/sd2.c
Fix a rsrc parsing bug. Example file supplied by Uli Franke.
2007-12-28 Erik de Castro Lopo
* doc/index.html
Allow use of either LGPL v2.1 or LGPL v3.
* tests/header_test.tpl
Add header_shrink_test from Axel Roebel.
* src/wav.c
Add fix from Axel Roebel for writing files with float data but no peak
chunk (ie peak chunk gets removed after the file is opened).
* src/aiff.c tests/header_test.tpl
Apply similar fix to above for AIFF files.
* src/wav.c tests/header_test.tpl
Apply similar fix to above for WAVEX files.
* src/command.c
Add Ogg/Vorbis to 'get format' commands.
2007-12-16 Erik de Castro Lopo
* src/ogg.c
Fix seeking on multichannel Ogg Vorbis files. Reported by Bodo.
Set the default encoding quality to 0.4 instead of 4.0 (Bodo again).
* tests/ogg_test.c
Add stereo seek tests.
2007-12-14 Erik de Castro Lopo
* tests/ogg_test.c
Add a test (currently failing) for stereo seeking on Ogg Vorbis files. Test
case supplied by Bodo.
* tests/utils.(def|tpl)
Add compare_XXX_or_die functions.
2007-12-05 Erik de Castro Lopo
* src/aiff.c
Fix a bug where ignoring ssnd_fmt.offset and ssnd_fmt.blocksize caused
misaligned reading of 24 bit data. Thanks to Uli Franke for reporting this.
2007-12-03 Erik de Castro Lopo
* src/vox_adpcm.c src/ima_oki_adpcm.[ch] src/Makefile.am
Merge in code from the vox-patch branch. Thanks to Robs for the patch
which fixes a long standing bug in the VOX codec.
2007-12-01 Erik de Castro Lopo
* examples/sndfile-convert.c
Fix handling of -override-sample-rate=X option.
2007-11-25 Erik de Castro Lopo
* src/ogg.c src/VORBIS
Merge in Ogg Vorbis support from John ffitch of the Csound project.
2007-11-24 Erik de Castro Lopo
* src/sndfile.c
Recognise files with 'vox6' extension as 6kHz OKI VOX ADPCM files. Also
recognise 'vox8' as and 'vox' as 8kHz files.
* configure.ac
Detect libjack (JACK Audio Connect Kit).
* examples/sndfile-jackplay.c examples/Makefile.am
Add new example program to play sound files using the JACK audio server.
Thanks to Jonatan Liljedahl for allowing this to be included.
2007-11-21 Erik de Castro Lopo
* doc/index.html
Update support table with SD2 and FLAC.
2007-11-17 Erik de Castro Lopo
* src/sndfile.c
Fix calculation of internal value psf->read_current when attempting to read
past end of audio data.
Remove redundant code.
* tests/lossy_comp_test.c
Add read_raw_test to check that raw reads do not go past the end of the
audio data section.
Clean up error output messages.
* src/sndfile.c
Add code to prevent sf_read_raw from reading past the end of the audio data.
* tests/Makefile.am
Add the wav_pcm lossy_comp_test.
2007-11-16 Erik de Castro Lopo
* configure.ac src/Makefile.am src/create_symbols_file.py
More OS/2 fixes from David Yeo.
2007-11-12 Erik de Castro Lopo
* src/file_io.c tests/utils.tpl tests/benchmark.tpl
Improve handling of requirements for O_BINARY as suggested by Ed Schouten.
2007-11-11 Erik de Castro Lopo
* src/common.h
Fix symbol class when SF_MIN is nested inside SF_MAX or vice versa.
* src/create_symbols_file.py
Add support for OS/2 contributed by David Yeo.
2007-11-05 Erik de Castro Lopo
* M4/gcc_version.m4
Add macro AC_GCC_VERSION to detect GCC_MAJOR_VERSION and GCC_MINOR_VERSION.
* configure.ac
Use AC_GCC_VERSION to work around gcc-4.2 inline warning stupidity.
See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33995
Use -fgnu-inline to prevent stupid warnings.
2007-11-03 Erik de Castro Lopo
* tests/util.tpl
Increase the printing width for print_test_name().
* tests/command_test.c tests/Makefile.am
Add tests for correct updating of broadcast WAV coding history.
* examples/sndfilehandle.cc examples/Makefile.am
Add example program using the C++ SndfileHandle class.
2007-10-29 Erik de Castro Lopo
* src/common.h src/sndfile.c
Add error codes SFE_ZERO_MAJOR_FORMAT and SFE_ZERO_MINOR_FORMAT.
2007-10-26 Erik de Castro Lopo
* src/sd2.c
Identify sample-rate/sample-size/channels by resource id.
2007-10-25 Erik de Castro Lopo
* src/broadcast.c src/common.h src/sndfile.c
Improvements to handling of broadcast info in WAV files. Thanks to Frederic
Cornu and other for their input.
2007-10-24 Erik de Castro Lopo
* src/FLAC/include/share/alloc.h
Mingw fix for SIZE_T_MAX from Uli Franke.
2007-10-23 Erik de Castro Lopo
* tests/open_fail_test.c tests/error_test.c tests/Makefile.am
Move tests from open_fail_test.c to error_test.c and remove the former.
2007-10-22 Erik de Castro Lopo
* tests/scale_clip_test.(def|tpl)
Add tests for SFC_SET_INT_FLOAT_WRITE command.
* doc/command.html
Add docs for SFC_SET_INT_FLOAT_WRITE command.
* examples/sndfile-play.c tests/dft_cmp.c
Fix gcc-4.2 warning messages.
2007-10-21 Erik de Castro Lopo
* src/sndfile.h.in src/sndfile.c
Add command SFC_GET_CURRENT_SF_INFO.
* src/sndfile.h.in src/sndfile.c src/create_symbols_file.py
Remove function sf_get_info (only ever in pre-release code).
* tests/command_test.c
Add test for SFC_GET_CURRENT_SF_INFO.
2007-10-15 Erik de Castro Lopo
* src/wav.c
Add parsing of 'exif' chunks. Originally coded by Trent Apted.
* configure.ac
Put config stuff in Cfg directory.
Remove check for inttypes.h.
2007-10-10 Erik de Castro Lopo
* src/w64.c
Fix writing of 'riff' chunk length and check for correct value in parser.
2007-09-20 Erik de Castro Lopo
* doc/index.html
Link to MP3 FAQ entry.
2007-09-18 Erik de Castro Lopo
* src/flac.c
Move the blocksize check to an earlier stage of flac_buffer_copy.
2007-09-12 Erik de Castro Lopo
* src/FLAC
Huge merge from FLAC upstream.
2007-09-10 Erik de Castro Lopo
* examples/*.c
Change license to all example programs to BSD.
2007-09-08 Erik de Castro Lopo
* src/FLAC/include/FLAC/metadata.h
Include to prevent compile error on OSX.
* Octave/octave_test.sh
Disable test on OSX. Can't get it to work.
* src/flac.c
Check the blocksize returned from the FLAC decoder to prevent buffer
overruns. Reported by Jeremy Friesner. Thanks.
2007-09-07 Erik de Castro Lopo
* Makefile.am M4/octave.m4
Fix build when Octave headers are not present.
2007-08-27 Erik de Castro Lopo
* doc/development.html
Add note about bzr repository directory looking empty.
2007-08-26 Erik de Castro Lopo
* configure.ac Octave/* M4/octave_*
Bunch of changes to add ability to build GNU Octave modules to read/write
sound files using libsndfile from Octave.
2007-08-23 Erik de Castro Lopo
* acinclude.m4 configure.ac ...
Get rid of acinclude.m4 and replace it with an M4 directory.
2007-08-21 Erik de Castro Lopo
* src/sndfile.h.in
Remove crufty Metrowerks compiler support. Allow header file to be compiled
on windows with both GCC and microsoft compiler.
2007-08-19 Erik de Castro Lopo
* tests/dft_cmp.[ch] tests/floating_point_test.tpl
Clean up floating point tests.
2007-08-14 Erik de Castro Lopo
* src/aiff.c
Fix segfault when COMM chunk length is byte swapped.
2007-08-09 Erik de Castro Lopo
* src/common.h src/mat4.c src/mat5.c src/sndfile.c
Add a generic SFE_CHANNEL_COUNT_ZERO error, remove format specific errors.
* src/au.c
Fix crash on AU files with zero channel count. Reported by Ben Alison.
2007-08-08 Erik de Castro Lopo
* src/voc.c
Fix bug in handling file supplied by Matt Olenik.
2007-07-31 Erik de Castro Lopo
* src/OGG
Merge from OGG upstream sources.
2007-07-25 Erik de Castro Lopo
* src/FLAC
Merge from FLAC upstream sources.
2007-07-15 Erik de Castro Lopo
* src/flac.c
Fix memory leak; set copy parameter to FALSE in call to
FLAC__metadata_object_vorbiscomment_append_comment.
* src/common.[ch]
Add function psf_rand_int32().
2007-07-14 Erik de Castro Lopo
* src/FLAC
Merge from FLAC upstream sources.
* src/strings.c tests/string_test.c tests/Makefile.am
Make sure string tests for SF_STR_LICENSE actually works.
2007-07-13 Erik de Castro Lopo
* tests/string_test.c
Add ability to test strings stored in metadata secion of FLAC files.
* src/string.c
Fix logic for testing if audio data has been written and string is added.
Make sure SF_STR_ALBUM actually works.
* src/flac.c
Finalize reading/writing string metadata. Tests pass.
* src/sndfile.h.in tests/string_test.c src/flac.c
Add string type SF_STR_LICENSE, update test and use for FLAC files.
* src/sndfile.h.in
Add definition for SFC_SET_SCALE_FLOAT_INT_WRITE command.
* src/common.h src/double64.c src/float32.c src/sndfile.c
Add support for SFC_SET_SCALE_FLOAT_INT_WRITE (still needs testing).
2007-07-12 Erik de Castro Lopo
* src/flac.c
Apply patch from Ed Schouten to read artist and title metadata from FLAC
files.
Improve reporting of FLAC metadata.
* src/sndfile.h.in tests/string_test.c src/flac.c
Add string type SF_STR_ALBUM, update test and use for FLAC files.
2007-06-28 Erik de Castro Lopo
* src/FLAC/*
Merge from upstream CVS.
2007-06-16 Erik de Castro Lopo
* src/FLAC/*
Update from upstream CVS.
2007-06-14 Erik de Castro Lopo
* tests/cpp_test.cc
Add extra tests for when the SndfileHandle constructor fails.
* src/sndfile.hh
Make sure failure to open the file in the constructor does not allow later
calls to other methods to fail.
2007-06-10 Erik de Castro Lopo
* tests/util.tpl
Add function write_mono_file.
* tests/generate.[ch] tests/Makefile.am
Add files generate.[ch] and hook into build.
* tests/write_read_test.tpl
Add multi_seek_test.
* src/flac.c
Fix buffer overflow bug. Test provided by Jeremy Friesner and fix provided
by David Viens.
2007-06-07 Erik de Castro Lopo
* doc/FAQ.html
Minor update.
* configure.ac src/FLAC/src/libFLAC/ia32/Makefile.am src/Makefile.am
Apply patch from Trent Apted make it compile on Intel MacOSX. Thanks Trent.
2007-05-28 Erik de Castro Lopo
* src/wav.c
Fix writing of MSGUID subtypes. Thanks to Bruce Sharpe.
2007-05-22 Erik de Castro Lopo
* src/wav.c
Fix array indexing bug raised by Bruce Sharpe.
2007-05-12 Erik de Castro Lopo
* src/FLAC/src/share/getopt/getopt.c
Fix Mac OSX / PowerPC compile warnings.
* configure.ac
Make sure WORDS_BIGENDIAN gets correctly defined for FLAC code.
2007-05-04 Erik de Castro Lopo
* doc/FAQ.html
Add Q/A about MP3 support.
2007-05-03 Erik de Castro Lopo
* doc/new_file_type.HOWTO
Minor updates.
2007-05-02 Erik de Castro Lopo
* src/wve.c
Fix a couple bad parameters with psf_log_printf.
* src/pcm.c
Improve error reporting.
* src/common.h src/common.c
Constify psf_hexdump.
2007-04-30 Erik de Castro Lopo
* src/FLAC
Ditch and re-import required FLAC code.
* configure.ac
Force FLAC__HAS_OGG variable to 1.
* src/FLAC/src/libFLAC/stream_encoder.c
Fix compiler warnings.
2007-04-23 Erik de Castro Lopo
* configure.ac tests/win32_ordinal_test.c
Detect if win32 DLL is beging generated and only run win32_ordinal_test if
true.
* src/G72x/Makefile.am src/Makefile.am
Use $(EXEEXT) where possible.
2007-04-18 Erik de Castro Lopo
* src/wve.c src/common.h src/sndfile.c
Complete definition of SfE_WVE_NO_WVE error message.
* src/wve.c
Fix error in files generated on big endian systems. Robustify parsing.
2007-04-16 Erik de Castro Lopo
* src/double64.c
Fix clipping of double to short conversions on 64 bit systems.
* src/flac.c regtest/database.c tests/cpp_test.cc
Fix compile warnings for 64 bit systems.
2007-04-15 Erik de Castro Lopo
* src/wav.c src/wav_w64.c
Use audio detect function when 'fmt ' chunk data is suspicious.
* configure.ac
Add ugly hack to remove -Werror from some Makefiles.
2007-04-14 Erik de Castro Lopo
* src/GSM610/long_term.c src/macbinary3.c tests/cpp_test.cc
Add patch from André Pang to clean up compiles on OSX.
* src/wve.c src/common.h src/sndfile.c src/sndfile.h.in
examples/sndfile-convert.c
Merge changes from Reuben Thomas to improve WVE support.
* tests/lossy_comp_test.c tests/Makefile.am
Add tests for WVE files.
2007-04-11 Erik de Castro Lopo
* src/sndfile.hh
Add a static SndfileHandle::formatCheck method as suggested by Jorge
Jiménez.
2007-04-09 Erik de Castro Lopo
* src/sndfile.c
Fixed a bug in sf_error() where the function itself was being compared
against zero. Add a check for a NULL return from peak_info_calloc. Fix a
possible NULL dereference.
2007-04-07 Erik de Castro Lopo
* src/flac.c
Turn off seekable flag when writing, return SFE_BAD_RDWR_FORMAT when
opening file for RDWR.
* src/sndfile.c
Improve error message for SFE_BAD_RDWR_FORMAT.
* src/mat4.c
Fix array indexing issue. Thanks to Ben Allison (Nullsoft) for alerting me.
2007-03-05 Erik de Castro Lopo
* doc/FAQ.html
Add Q/A 19 on project files.
2007-03-01 Erik de Castro Lopo
* src/sndfile.c
Guard agains MacOSX universal binary compiles.
* doc/FAQ.html
Add Q/A 18 and clean up Q3.
2007-02-22 Erik de Castro Lopo
* src/aiff.c
Add support for 'in24' files.
2007-02-13 Erik de Castro Lopo
* src/wav.c src/wav_w64.c src/wav_w64.h
Start work towards detecting ausio codec type from the actual audio data.
* src/audio_detect.c src/test_audio_detect.c
Add new file and its unit test.
2007-02-07 Erik de Castro Lopo
* examples/cooledit-fixer.c examples/Makefile.am
Remove old broken example program.
2007-02-06 Erik de Castro Lopo
* src/sndfile.c src/sndfile.h.in src/create_symbols_file.py
Add function sf_get_info.
2007-01-25 Erik de Castro Lopo
* examples/sndfile-play.c
For ALSA, use the 'default' device instead of 'plughw:0'.
2007-01-22 Erik de Castro Lopo
* src/sndfile.c
Allow writing of WAV/WAVEX 'BEXT' chunks in SFM_RDWR mode.
2007-01-21 Erik de Castro Lopo
* doc/development.html doc/embedded_files.html man/sndfile-play.1
Minor documentation fixes. Thanks Reuben Thomas.
2006-12-16 Erik de Castro Lopo
* examples/sndfile-convert.c
Add -override-sample-rate command line option.
2006-11-19 Erik de Castro Lopo
* tests/misc_test.c
Force errno to zero at start of some tests.
* src/sndfile.c
Minor clean up of error handling.
* configure.ac
Remove an assembler test which was failing on OSX.
2006-11-15 Erik de Castro Lopo
* src/common.h
Fix the definition of SF_PLATFORM_S64 for MinGW.
* src/FLAC/Makefile.am src/FLAC/share/grabbag/Makefile.am
Fix path problems for MinGW.
2006-11-13 Erik de Castro Lopo
* src/sfendian.h
Add include guard.
* src/Makefile.am src/flac.c
Clean up include paths.
* src/test_conversions.c
New file to test psf_binheader_readf/writef functions.
* src/Makefile.am src/test_file_io.c src/test_log_printf.c src/common.c
Clean up unit testing.
* src/common.c
Fix a bug reading/writing 64 bit header fields. Thanks to Jonathan Woithe
for reporting this.
* src/test_conversions.c
Complete unit test for above fix.
2006-11-11 Erik de Castro Lopo
* src/sndfile.c
More refactoring to clean up psf_open_file() and vairous sf_open()
functions.
2006-11-09 Erik de Castro Lopo
* src/wav.c
Apply a patch from Jonathan Woithe to allow opening of (malformed) WAV
files of over 4 gigabytes.
2006-11-05 Erik de Castro Lopo
* src/sndfile.c
Refactor function psf_open_file() to provide a single return point.
* tests/misc_test.c
Fix permission_test to ensure that read only file can be created.
2006-11-03 Erik de Castro Lopo
* src/common.h
Add SF_PLATFORM_S64 macro as a platform independant way of doing signed 64
bit integers.
* src/aiff.c src/svx.c src/wav.c
Add warning in log if files are larger than 4 gigabytes in size.
2006-11-01 Erik de Castro Lopo
* src/FLAC src/OGG confgure.ac src/Makefile.am
Pull in all required FLAC and OGG code so external libraries are not
needed. This makes compiling on stupid fscking Windoze easier.
2006-10-27 Erik de Castro Lopo
* src/sd2.c
Add workaround for switched sample rate and sample size.
* src/wav.c
Add workaround for excessively long coding history in the 'bext' chunk.
2006-10-23 Erik de Castro Lopo
* src/sndfile.h.in src/sndfile.c src/wav.c doc/command.html
Use SF_AMBISONIC_* instead of SF_TRUE/SF_FALSE.
2006-10-22 Erik de Castro Lopo
* src/sndfile.h.in src/wav.c src/wav_w64.c src/common.h doc/command.html
Apply a patch from Fons Adriaensen to allow writing on WAVEX Ambisonic
files. Still needs a little tweaking before its ready for release.
* src/*.c
Use the UNUSED macro to prevent compiler warnings.
2006-10-19 Erik de Castro Lopo
* src/aiff.c
Fix a bug in parsing AIFF files with a slightly unusual 'basc' chunk. Thanks
to David Viens for providing two example files.
* src/common.(c|h) src/aiff.c
Add a function psf_sanitize_string and use it in aiff.c.
2006-10-18 Erik de Castro Lopo
* src/wav_w64.c
Apply a patch from Fons Adriaensen which fixes a minor WAVEX GUID issue.
2006-10-17 Erik de Castro Lopo
* src/Makefile.am
Fix problem related to recent test coverage changes.
2006-10-15 Erik de Castro Lopo
* configure.ac tests/Makefile.am
Add --enable-test-coverage configure option.
2006-10-05 Erik de Castro Lopo
* src/sndfile.hh
Add an std::string SndfileHandle constructor.
* tests/scale_clip_test.tpl
Fix the 'make distcheck' target.
2006-10-03 Erik de Castro Lopo
* src/double64.c src/float32.c
Add optional clipping on float file data to int read data conversions.
* tests/tests/scale_clip_test.(def|tpl)
Add test for above new code.
2006-09-06 Erik de Castro Lopo
* tests/aiff_rw_test.c
Add 'MARK' chunks to make sure they are parsed correctly.
2006-09-05 Erik de Castro Lopo
* src/aiff.c
Fix parsing of MARK chunks. Many thanks to Sciss for generating files to
help debug the problem.
2006-09-02 Erik de Castro Lopo
* src/common.h
Make the SF_MIN and SF_MAX macros at least partially type safe.
* tests/lossy_comp_test.c
Fix overflow problems when ensuring that signalis not zero.
2006-08-31 Erik de Castro Lopo
* configure.ac docs/*.html
Changes for release 1.0.17.
2006-08-08 Erik de Castro Lopo
* src/flac.c
Remove inline from functions called by pointer. Thanks to Sampo Savolainen
for notifying me of this.
2006-07-31 Erik de Castro Lopo
* src/sndfile.hh
Add writeSync method.
Add copy constructor and assignment operator (thanks Daniel Schmitt).
Add methods readRaw and writeRaw.
Make read/write/readf/writef simple overlaods instead of templates (thanks
to Trent Apted for suggesting this).
* tests/cpp_test.cc
Cleanup. Add tests.
2006-07-30 Erik de Castro Lopo
* src/sndfile.hh
Templatize the read/write/readf/writef methods as suggested by Lars Luthman.
Prevent the potential leak of SNDFILE* pointers in the openRead/openWrite/
openReadWrite methods.
Add const to SF_INFO pointer in Sndfile constructor.
Make the destrictor call the close() method.
* tests/cpp_test.cc
Add more tests.
2006-07-29 Erik de Castro Lopo
* tests/cpp_test.cc
Remove the generated file so "make distcheck" passes.
* src/Makefile.am
Add sndfile.hh to distributed header files.
* src/sndfile.hh
Change the license for the C++ wrapper to modified BSD.
2006-07-28 Erik de Castro Lopo
* src/sndfile.hh
Complete it.
* tests/cpp_test.cc
Add more tests.
2006-07-27 Erik de Castro Lopo
* tests/utils.tpl
Add extern C to generated header file.
* src/sndfile.hh
Work towards completing this.
* tests/cpp_test.cc tests/Makefile.am
Add a C++ test and hook into build.
* configure.ac
Add appropriate CXXFLAGS.
2006-07-26 Erik de Castro Lopo
* configure.ac
Test if compiler supports -Wpointer-arith.
* src/common.c
Fix a warning resulting from -Wpointer-arith.
2006-07-15 Erik de Castro Lopo
* examples/sndfile-play.c
Explicitly set endian-ness as well as setting 16 bit output.
* examples/sndfile-info.c
Make sure to parse info if file fails to open.
* src/sndfile.c
Handle parse error a little better.
* src/wav_w64.[ch]
Minor clean up, add detection of IPP ITU G723.1.
2006-06-23 Erik de Castro Lopo
* src/sndfile.c
Make sure psf->dataoffset gets reset to zero when openning headersless
files based on the file name extension.
2006-06-21 Erik de Castro Lopo
* tests/(command|lossy_comp|pcm|scale_clip)_test.c tests/fix_this.c
tests/write_read_test.(tpl|def)
Fix gcc-4.1 compiler warnings about "dereferencing type-punned pointer will
break strict-aliasing rules".
* examples/cooledit-fixer.c
More fixes like above.
2006-06-20 Erik de Castro Lopo
* src/file_io.c
Fix a windows bug where the syserr string of SF_PRIVATE was not being set
correctly.
* src/sndfile.c
Fixed a logic bug in sf_seek(). Thanks to Paul Davis for finding this.
2006-06-04 Erik de Castro Lopo
* configure.ac
Fixed detection of S_IRGRP.
2006-05-30 Erik de Castro Lopo
* sndfile-convert.c
Add conversion SF_INSTRUMENT data when present.
2006-05-22 Erik de Castro Lopo
* doc/development.html
Removed references to tla on windows.
* src/common.h src/sndfile.c
Add separate void pointers for file containter and file codec data to
SF_PRIVATE struct. Still need to move all existing fdata pointers.
* tests/write_read_test.tpl
Change the order of some tests.
* src/aiff.c
When writing 'AIFC' files, make sure get an 'FVER' gets added.
* src/common.h src/(dwvw|flac|g72x|gsm610|ima_adpcm|ms_adpcm|paf|sds).c
src/(sndfile|voc|vox_adpcm|xi).c
Remove fdata field from SF_PRIVATE struct and replace it with codec_data.
2006-05-10 Erik de Castro Lopo
* Win32/testprog.c Win32/Makefile.am
Add a minimal win32 test program.
* Win32/README-precompiled-dll.txt Mingw-make-dist.sh
Update readme and Mingw build script.
2006-05-09 Erik de Castro Lopo
* configure.ac acinclude.m4
Minor fixes for Solaris.
2006-05-05 Erik de Castro Lopo
* src/test_endswap.(def|tpl)
Fix printf formatting for int64_t on 64 bit machines.
2006-05-04 Erik de Castro Lopo
* src/binhead_check.py
New file to check for bad parameters passed to psf_binheader_writef().
* src/Makefile.am
Hook into test suite.
* src/voc.c src/caf.c src/wav.c src/mat5.c src/mat4.c
Fix bugs found by new test program.
* src/double64.c
Clean up double64_get_capability().
2006-05-03 Erik de Castro Lopo
* src/wav_w64.c
Fix a bug on x86_64 where an int was being passed via stdargs and being
read using size_t which is 64 bits. Thenks to John ffitch for giving me a
login on his box.
2006-05-02 Erik de Castro Lopo
* src/caf.c src/double64.c examples/sndfile-info.c tests/virtual_io_test.c
tests/utils.tpl
Fix a couple of signed/unsigned problems.
2006-05-01 Erik de Castro Lopo
* tests/command_test.c
Add channel map tests.
* src/common.h src/sndfile.c
Add a pointer the the SF_PRIVATE struct and make sure it gets freed in
sf_close().
2006-04-30 Erik de Castro Lopo
* configure.ac doc/(command|index|api).html NEWS README
Updates for 1.0.16 release.
* src/sndfile.h.in
Define enums for channel mapping.
* examples/sndfile-info.c
Clean up usage of SF_INFO struct.
2006-04-29 Erik de Castro Lopo
* tests/util.tpl
Add function testing function exit_if_true().
* tests/floating_point_test.tpl
Fix a problem where the test program was not exiting when the test failed.
2006-04-15 Erik de Castro Lopo
* src/sndfile.h.in src/sndfile.c src/common.h src/command.c
Implement new commands SFC_GET_SIGNAL_MAX and SFC_GET_MAX_ALL_CHANNELS.
* doc/commands.html
Document new commands. Other minor updates.
* tests/peak_chunk_test.c
Update tests for new commands.
2006-04-02 Erik de Castro Lopo
* tests/peak_chunk_test.c
Add test for RIFX and WAVEX files.
Try and confuse the PEAK chunk writing by enabling and disabling it.
* src/sndfile.c
Fix a bug where enabling and disabling PEAK chunk was screwing up.
2006-03-31 Erik de Castro Lopo
* src/sndfile.h.in
Add the block of 190 reserved bytes into this struct to allow for
future expansion.
* src/wav.c src/sndfile.c src/broadcast.c
Significant cleanup of broadcast wave stuff.
* examples/sndfile-info.c
Fix print message.
* tests/command_test.c tests/Makefile.am
Complete bext tests, hook test in test suite.
2006-03-30 Erik de Castro Lopo
* src/sndfile.h.in
Make coding_history field of SF_BROADCAST_INFO struct a char array instead
of a char pointer.
* src/sndfile.c src/common.h src/wav.c
Clean up knock on effects of above chnage.
* examples/sndfile-info.c
Add -b command line option to usage message.
Clean up output of broadcast wave info.
* src/wav.c
Ignore and skip the 'levl' chunk.
2006-03-26 Erik de Castro Lopo
* configure.ac
Fix handling of --enable and --disable configure args. Thanks to Diego
'Flameeyes' Pettenò who sent the patch.
2006-03-22 Erik de Castro Lopo
* doc/win32.html
Make it really clear that although the MSVC++ cannot compile libsndfile,
the precompiled DLL can be used in C++ programs compiled with MSVC++.
2006-03-18 Erik de Castro Lopo
* src/aiff.c
Fix bug in writing of INST chunk in AIFF files.
Fix potential bug in writing MARK chunks.
* src/sndfile.c
Make sure the instrument chunk can only be written at the start of the file.
* tests/command_test.c
Add check of log buffer.
* tests/utils.tpl
Add usage of space character to psf_binheader_writef.
2006-03-17 Erik de Castro Lopo
* src/Makefile.am tests/Makefile.am
Remove --source-time argument from autogen command lines.
* src/broadcast.c
New file for EBU Broadcast chunk in WAV files.
* src/sndfile.c src/sndfile.h.in src/wav.c src/common.h
Add patch from Paul Davis implementing read/write of the BEXT chunk.
2006-03-16 Erik de Castro Lopo
* Win32/README-precompiled-dll.txt
New file descibing how to use the precompiled DLL.
* Win32/Makefile.am
Add Win32/README-precompiled-dll.txt to EXTRA_DIST files.
* configure.ac
Bump version to 1.0.15.
2006-03-11 Erik de Castro Lopo
* src/wav.c
On read, only add the endian flag if the file is big endian.
* src/ms_adpcm.c
Fixed writing of APDCM coeffs in RIFX files.
* tests/write_read_test.tpl tests/lossy_comp_test.c
Add tests for RIFX files.
2006-03-10 Erik de Castro Lopo
* Mingw-make-dist.sh
Bunch of improvements.
* doc/win32.html
Update MinGW program versions.
2006-03-09 Erik de Castro Lopo
* src/create_symbols_file.py
Fix the library name in created win32 DEF file. Add correct DLL name for
Cygwin DLL.
* Win32/Makefile.am tests/Makefile.am
Remove redundant files, add win32_ordinal_test to test suite.
* tests/win32_ordinal_test.c
Update to do test in cygsndfile-1.dll as well.
* doc/win32.html
Fix typo, mention that -mno-cygwin with the Cygwin compiler does not work.
* src/wav.c src/wav_w64.c src/sndfile.c src/sndfile.h.in
Apply large patch from Jesse Chappell which adds support for RIFX files.
2006-03-08 Erik de Castro Lopo
* Makefile.am
Add Mingw-make-dist.sh to the extra dist files.
* configure.ac
Fix setting SHLIB_VERSION_ARG for MinGW.
* tests/win32_ordinal_test.c
New test program to test that the win32 DLL ordinals agree with the DEF
file.
2006-03-04 Erik de Castro Lopo
* src/common.h
Add a static inline function to convert an int to a size_t. This will be
a compile to nothing on 32 bit CPUs and a sign extension on 64 bit CPUs.
* src/aiff.c src/avr.c src/common.c src/xi.c src/gsm610.c
Fix an ia64 problem where a varargs function was being passed an int in
some places and a size_t in other places.
* src/sd2.c
Add a workaround for situations where OSX seems to add an extra 0x52 bytes
to the start of the resource fork.
2006-02-19 Erik de Castro Lopo
* Mingw-make-dist.sh
Add a shell script to build the windows binary/source ZIP file.
* doc/index.html
Add download link for windows binary/source ZIP file. Add links for GPG
signatures.
* doc/win32.html
Remove info about building using microsoft compiler.
* configure.ac
Bump version to 1.0.14.
2006-02-11 Erik de Castro Lopo
* src/sd2.c
Improve logging of errors in resource fork parser.
2006-01-31 Erik de Castro Lopo
* Win32/Makefile.msvc
Replace au_g72x.* with g72x.*. Thanks to ussell Borogove.
2006-01-29 Erik de Castro Lopo
* src/common.c
Make sure return values are initialised header buffer is full.
* src/wav.c
Add workarounds for messed up WAV files.
2006-01-21 Erik de Castro Lopo
* Win32/config.h
Undef HAVE_INTTYPES_H for win32.
* tests/command_test.c
Don't exit on error in instrument test for XI files.
* configure.ac
Bump version to 1.0.13.
* doc/*.html NEWS README
Update version numbers.
2006-01-19 Erik de Castro Lopo
* src/xi.c
Start work on add read/write of instrument chunks.
* src/command_test.c
Add tests for XI instrument chunk.
* tests/largefile_test.c tests/Makefile.am
Add new test and hook it into the build system. This test will not be run
automatically because it requires 3 Gig of disk space and takes 3 minutes
to run.
2006-01-10 Erik de Castro Lopo
* examples/sndfile-play.c
Fix calculation of samples remaining in win32 code. Thanks Axel Roebel.
* src/common.h
Make sure length of header buffer can hold header plus strings. Thanks Axel
Roebel.
2006-01-09 Erik de Castro Lopo
* src/sndfile.h.in src/aiff.c src/wav.c
Apply a patch from John ffitch (Csound project).
Add detune field to SF_INSTRUMENT struct.
Add reading/writing instrument chunks to WAV files.
* tests/command_test.c
Update SF_INSTRUMENT tests.
* tests/Makefile.am
Hook instrument tests into test suite.
2006-01-05 Erik de Castro Lopo
* configure.ac
Check for because some broken systems (like Solaris) don't have
which is the 1999 ISO C standard file containing int64_t.
* src/sfendian.h src/common.h
Use if is not available.
2005-12-30 Erik de Castro Lopo
* tests/peak_chunk_test.c
Extend and clean up tests.
* src/sndfile.c
Fix a bug that prevented the turning off of PEAK chunks.
2005-12-29 Erik de Castro Lopo
* tests/error_test.c
Make the test distclean correct.
* src/file_io.c
Fix an SD2 MacOSX bug (reported by vince schwarzinger).
2005-12-28 Erik de Castro Lopo
* src/aiff.c tests/command_test.c
Apply a big patch from John ffitch (Csound project) to add reading and
writing of instrument chunks to AIFF files. Also update the test.
2005-12-10 Erik de Castro Lopo