2003-03-02 Erik de Castro Lopo * Win32/Makefile.msvc Changes to force example binaries to be placed in the top level directory instead of the examples/ directory. Add src/strings.c and src/xi.c to the build. Add string_test to build and to tests on WAV files. * doc/index.html Added XI to support matrix. 2003-01-27 Erik de Castro Lopo * src/sndfile.h.in Added prototypes for sf_get_string() and sf_set_string() and SF_STR_* enum values. * src/sndfile.c Added public interface to sf_get_string() and sf_set_string(). * src/wav.c Added code for setting and getting strings in WAV files. * tests/string_test.c New test program for sf_get_string() and sf_set_string() functionality. * tests/Makefile.am Hook new test program into build and test framework. 2003-01-26 Erik de Castro Lopo * src/common.h Added fields to SF_PRIVATE for string data needed to implement sf_get_string() and sf_set_string(). * src/strings.c New file for storing and retrieving strings to/from files. * src/Makefile.am Added strings.c to build. 2003-01-25 Erik de Castro Lopo * src/xi.c Read seems to be working so looking at write. * src/sndfile.h.in Added SF_FORMAT_XI, SF_FORMAT_DPCM_8 and SF_FORMAT_DPCM_16 enum values. * tests/floating_point_test.c tests/lossy_comp_test.c tests/Makefile.am Added test for 8 and 16 bit XI format files. 2003-01-24 Erik de Castro Lopo * doc/index.html Added a non-lawyer readable summary of the licensing provisions as suggested by Steve Dekorte. 2003-01-23 Erik de Castro Lopo * src/wav.c Fixed a compiler warning found by Alexander Lerch. 2003-01-18 Erik de Castro Lopo * configure.ac Fixed the multiple linking of libm. 2003-01-17 Erik de Castro Lopo * Win32/Makefile.mcvs Added comments on the correct way to set up the MSVCDir environment variable. * doc/win32.html Add on how to set up the MSVCDir environment variable. 2003-01-15 Erik de Castro Lopo * examples/sndfile-play.c examples/sndfile-info.c When run on Win32 without any command line parameters print a message and then sleep for 5 seconds. This means the when somebody double clicks on these programs in explorer the user will actually see the message. 2003-01-14 Erik de Castro Lopo * tests/misc_test.c Bypass permission test if running as root because root is allowed to open a readonly file for write. 2003-01-08 Erik de Castro Lopo * Win32/Makefile.msvc Added pvf.c and xi.c source files to project. * src/sndfile.h Updated for PVF files. 2003-01-07 Erik de Castro Lopo * src/sndfile. Modified validate_sfinfo() to force samplerate, channels and sections to be >= 1. In format_from_extension() replaced calls to does_extension_match() with strcmp(). * src/xi.c More work. 2003-01-06 Erik de Castro Lopo * doc/Makefile.am Added octave.html which had been left out. Found by Jan Weil. 2003-01-05 Erik de Castro Lopo * src/pvf.c src/common.h src/sndfile.c Fixed error handling for PVF files. * src/xi.c New file for handling Fasttracker 2 Extended Instrument files. Not working yet and included when configured with --enable-experimental. * src/sndfile.c src/common.h Hooked in new file xi.c. 2002-12-30 Erik de Castro Lopo * src/rx2.c Added a patch from Marek Peteraj which sheds a little more light on the slices within an RX2 file. Still need to find out data encoding. 2002-12-20 Erik de Castro Lopo * src/wav.c Started work on decoding 'acid' and 'strc' chunks. 2002-12-14 Erik de Castro Lopo * tests/peak_check_test.c Minor cleanup. 2002-12-12 Erik de Castro Lopo * tests/write_read_test.tpl Added check to make sure no error was generated when an attempt was made to read past the end of the file. 2002-12-11 Erik de Castro Lopo * doc/lists.html Added "mailto" links for all three lists. * src/pvf.c New file for Portable Voice Format files. * src/sndfile.h.in src/sndfile.c src/common.h src/command.c src/Makefile.am Added hooks for SF_FORMAT_PVF format files. * tests/write_read_test.tpl tests/std*.c Add tests for SF_FORMAT_PVF. * doc/index.html Add PVF to the compatibility matrix. * src/pcm.c src/alaw.c src/ulaw.c src/float32.c src/double64.c Previously, attempts to read beyond the end of a file would set psf->error to SFE_SHORT_ERROR. This behaviour diverged from the behaviour of the POSIX read() call but has now been fixed. Attempts to read beyond the end of the file will return a short read count but will not longer set any error. 2002-12-09 Erik de Castro Lopo * src/sndfile.c Add more sanity checking when opening a RAW file for read. When format is not RAW, zero out all members of the SF_INFO struct. * tests/raw_test.c Add bad_raw_test() to check for above problem. * tests/stdin_test.c examples/sndfile-info.c Set the format field of the SF_INFO struct to zero before calling sf_open(). * doc/api.html Add information about the need to set the format field of the SF_INFO struct to zero when opening non-RAW files for read. * configure.ac Removed use of conversion script on Solaris. Not all Solaris versions support it. * doc/lists.html New file containg details of the mailing lists. * doc/index.html Add a link to the above new file. 2002-12-04 Erik de Castro Lopo * tests/dft_cmp.c Fixed a SIGFPE on Alpha caused by a log10 (0.0). Thanks to Joshua Haberman for providing the gdb traceback. 2002-11-28 Erik de Castro Lopo * src/wav.c Added more capabilities to 'smpl' chunk parser. * src/sndfile.c Fixed some (not all) possible problems found with Flawfinder. 2002-11-24 Erik de Castro Lopo * src/sndfile.c Fixed a bug in sf_seek(). This bug could only occur when an attempt was made to read beyond the end and then sf_seek() was called with a whence parameter of SEEK_CUR. * src/file_io.c Win32's _fstati64() does not work, it returns BS. Re-implemented psf_get_filelen() in terms of psf_fseek(). * tests/write_read_test.tpl Add a test to detect above bug. * src/float_cast.h Modification to prevent compiler warnings on Mac OS X. * src/file_io.c Fixes for windows (what a f**ked OS). 2002-11-08 Erik de Castro Lopo * configure.ac Disable use of native lrint()/lrintf() on Mac OSX. These functions exist on Mac OSX 10.2 but not on 10.1. Forcing the use of the versions in src/float_cast.h means that a library compiled on 10.2 will still work on 10.1. 2002-11-06 Erik de Castro Lopo * configure.in configure.ac Renamed configure.in to configure.ac as expected by later versions of autoconf. Slight hacking of configure.ac to work with version 2.54 of autoconf. Changed to using -dumpversion instead of --version for determining GCC version numer as suggested by Anand Kumria. * src/G72x/Makefile.am Slight hacking required for operation with automake 1.6.3. 2002-11-05 Erik de Castro Lopo * src/common.c In psf_binheader_readf() changed type parameter type "b" type from size_t to int to prevent errors on IA64 CPU where sizeof (size_t) != sizeof (int). Thanks to Enrique Robledo Arnuncio for debugging this. 2002-11-04 Erik de Castro Lopo * test/command_test.tpl Changed test value so test would pass on Solaris. * src/Version_script.in Modified version numbering so that later versions of 1.0.X can replace earlier versions without recompilation. * src/vox_adpcm.c Fixed bug causing short reads. 2002-11-03 Erik de Castro Lopo * test/floating_point_test.c Code cleanup using functions from util.c. Add test for IEEE replacement floats and doubles. 2002-11-01 Erik de Castro Lopo * src/wav.c Fixed a possible divide by zero error when read the 'smpl' chunk. Thanks to Serg Repalov for the example file. * tests/pcm_test.tpl Used sf_command (SFC_TEST_IEEE_FLOAT_REPLACE) to test IEEE replacement code. Clean up pcm_double_test(). * src/float32.c src/double64.c Force use of IEEE replacement code using psf->ieee_replace is TRUE, Print message to log_buffer as well. Rename all broken_read_* and broken_write* functions to replace_read_* and replace_write_*. * tests/util.tpl Added string_in_log_buffer(). * tests/pcm_test.tpl Use string_in_log_buffer() to ensure that IEEE replacement code has been used. * configure.in Removed --enable-force-broken-float option. IEEE replacement code is now always tested. 2002-10-31 Erik de Castro Lopo * src/double64.c Implement code for read/writing IEEE doubles on platforms where the native double format is not IEEE. * src/float32.c src/common.h Remove float32_read() and float32_write(). Replace with float32_le_read(), float32_be_read(), float32_le_write() and float32_be_write() to match stuff in src/double64.c. * src/common.c Fix all usage of float32_write(). * src/sndfile.h.in Added SFC_TEST_IEEE_FLOAT_REPLACE command (testing only). * src/common.h Added SF_PRIVATE field ieee_replace. * src/sndfile.c In sf_command() set/reset psf->ieee_replace. 2002-10-26 Erik de Castro Lopo * tests/pcm_test.tpl Fixed a problem when testing with --enable-force-broken-float. The test was generating a value of negative zero and the broken float code is not able to write negative zero. Removing the negative zero fixed the test. 2002-10-25 Erik de Castro Lopo * src/file_io.c Added fix for Cygwin (suggested by Maros Michalik). 2002-10-23 Erik de Castro Lopo * src/file_io.c Improved error detection and handling. * src/file_io.c src/common.h Removed functions psf_ferror() and psf_clearerr() which were redundant after above improvements. * src/aiff.c src/svx.c src/w64.c src/wav.c Removed all use of psf_ferror() and psf_clearerr(). * src/sndfile.c Removed #include of , , and which are no longer needed. * tests/misc_test.c Added test to make sure the correct error message is returned with an existing read-only file is openned for write. 2002-10-21 Erik de Castro Lopo * doc/index.html doc/api.html Updated for OKI Dialogic ADPCM files. * src/command.c Added VOX ADPCM to sub_fomats. 2002-10-20 Erik de Castro Lopo * src/vox_adpcm.c src/Makefile.am New file for handling OKI Dialogic ADPCM files. * src/sndfile.h Add new subtype SF_FORMAT_VOX_ADPCM. * src/sndfile.c Renamed function is_au_snd_file () to format_from_extenstion () and expanded its functionality to detect headerless VOX files. * src/raw.c Added hooks for SF_FORMAT_VOX_ADPCM. * examples/sndfile-info.c Print out file duration (suggested by Conrad Parker). * libsndfile.spec.in Force installation of sndfile.pc file (found by John Thompson). * tests/Makefile.am tests/lossy_comp_test.c tests/floating_point_test.c Add tests for SF_FORMAT_VOX_ADPCM. 2002-10-18 Erik de Castro Lopo * tests/misc_test.c Add test which attempts to write to /dev/full (on Linux anyway) to check for correct handling of writing to a full filesystem. * src/sndfile.c Return correct error message if the header cannot be written because the filesystem is full. * tests/util.tpl Corrected printing of file mode in error reporting. * src/mat5.c Fixed a bug where a MAT5 file written by libsndfile could not be opened by Octave 2.1.36. 2002-10-13 Erik de Castro Lopo * src/common.h src/file_io.c All low level file I/O have been modified to be better able to report system errors resulting from calling system level open/read/write etc. * src/*.c Updated for compatibility with above changes. * examples/cooledit-fixer.c New example program which fixes badly broken file created by Syntrillium's Cooledit which are marked as containing PCM samples but actually contain floating point data. * examples/Makefile.am Hooked cooledit-fixer into the build system. 2002-10-10 Erik de Castro Lopo * doc/command.html Document SFC_GET_FORMAT_INFO. 2002-10-09 Erik de Castro Lopo * examples/wav32_aiff24.c examples/sndfile2oct.c examples/sfhexdump.c examples/sfdump.c Removed these files because they weren't interesting. * examples/sfconvert.c examples/sndfile-convert.c Renamed the first to the latter. * examples/Makefile.am Added sndfile-convert to the bin_PROGRAMS, so it is installed when the lib is installed. Removed old programs wav32_aiff24 and sndfile2oct. * man/sndfile-convert.1 New man page. * examples/sndfile-convert.c Added some gloss now that sndfile-convert.c is an installed program. * src/sndfile.h.in src/sndfile.c src/common.h src/command.h Added command SFC_GET_FORMAT_INFO. * tests/command_test.c Added tests form SFC_GET_FORMAT_INFO. 2002-10-08 Erik de Castro Lopo * src/sndfile.c In sf_format_check() return error if samplerate < 0. 2002-10-07 Erik de Castro Lopo * src/aiff.c Fixed bug in handling of COMM chunks with a 4 byte encoding byte but no encoding string. 2002-10-06 Erik de Castro Lopo * src/sndfile.c Fixed repeated word in an error message. 2002-10-05 Erik de Castro Lopo * doc/index.html Improved advertising in Features section. 2002-10-04 Erik de Castro Lopo * src/wav.c Added decoding of 'labl' chunks within 'LIST' chunks. * src/common.h Added (experimental only) SF_FORMAT_OGG and SF_FORMAT_VORBIS and definition of ogg_open(). This is nowhere near working yet. * src/sndfile.c Added detection of 'OggS' file marker and added call to ogg_open() to switch statement. * src/ogg.c New file. Very early start of Ogg Vorbis support. * src/wav.c Added handling of brain-damaged and broken Cooledit "32 bit 24.0 float type 1" files. These files are marked as being 24 bit WAVE_FORMAT_PCM with a block alignment of 4 times the numbers of channels but are in fact 32 bit floating point. 2002-10-02 Erik de Castro Lopo * configure.in Modified option --enable-experimental to set ENABLE_EXPERIMENTAL_CODE in config.h to either 0 or 1. * src/sndfile.c Modify sf_command (SFC_GET_LIB_VERSION) to append "-exp" to the version string if experimental code has been enabled. 2002-10-01 Erik de Castro Lopo * src/Makefile.am Added -lm to libsndfile_la_LIBADD. This means that -lm is not longer needed in the link line when linking something to libsndfile. * tests/Makefile.am examples/Makefile.am Removed -lm from all link lines. * sndfile.pc.in Removed -lm from Libs line. 2002-09-24 Erik de Castro Lopo * src/file_io.c Removed all perror() calls. * src/nist.c Removed calls to exit() function. Added check to detect NIST files dammaged from Unix CR -> Win32 CRLF conversion process. 2002-09-24 Erik de Castro Lopo * src/sndfile.h.in src/sndfile.c New function sf_strerror() which will eventually replace functions sf_perror() and sf_error_str(). Function sf_error_number() has also been changed, but this was documented as being for testing only. * doc/api.html Documented above changes. * tests/*.c examples/*.c Changed to new error functions. 2002-09-22 Erik de Castro Lopo * configure.in Detect GCC version, and print a warning message about writeable strings it GCC major version number is less than 3. 2002-09-21 Erik de Castro Lopo * src/sndfile.h.in doc/api.html Documentation fixes. 2002-09-19 Erik de Castro Lopo * src/Version_script.in src/Makefile.am configure.in Use the version script to prevent the exporting of all non public symbols. This currently only works with Linux. Will test on Solaris as well. * src/float_cast.h Added #ifndef to prevent the #warning directives killing the SGI MIPSpro compiler. * src/au_g72x.c src/double64.c src/float32.c src/gsm610.c src/ima_adpcm.c src/ms_adpcm.c Fix benign compiler warnings arising from previously added compiler flags. 2002-09-18 Erik de Castro Lopo * src/sndfile.c Fixed a bug in sf_error_str() where errnum was used as the index instead of k. Found by Tim Hockin. * examples/sndfile-play.c Fixed a compiler warning resulting from a variable shadowing a previously defined local. 2002-09-17 Erik de Castro Lopo * src/sndfile.h.in src/sndfile.c Added command SFC_SET_RAW_START_OFFSET. * doc/command.html Document SFC_SET_RAW_START_OFFSET. * tests/raw_test.c tests/Makefile.am Add new file for for testing SF_FORMAT_RAW specific functionality. * tests/dwvw_test.c Updates. 2002-09-16 Erik de Castro Lopo * src/wav.c Modified reading of 'smpl' chunk to take account of the sampler data field. * tests/utils.tpl tests/utils.h Added function print_test_name(). * tests/misc_test.c tests/write_read_test.tpl tests/lossy_comp_test.c tests/pcm_test.tpl tests/command_test.tpl tests/floating_point_test.c Convert to use function print_test_name(). 2002-09-15 Erik de Castro Lopo * doc/octave.html Added a link to some other Octave scripts for reading and writing sound files. * src/paf.c Change type of dummy data field to int. This should fix a benign compiler warning on some CPUs. Removed superfluous casts resulting from the above change. * src/rx2.c More hacking. 2002-09-14 Erik de Castro Lopo * src/mat5.c src/common.c Changed usage of snprintf() to LSF_SNPRINTF(). * Win32/Makefile.msvc Updated to include new files and add new tests. * Win32/config.h Win32/sndfile.h Updated. * doc/api.html Added note about the possibility of "missing" features actually being implemented as an sf_command(). 2002-09-13 Erik de Castro Lopo * tests/misc_test.c Added previously missing update_header_test and zero_data_tests for PAF, MAT4 and MAT5 formats. * src/paf.c src/mat4.c src/mat5.c Fixed bugs uncovered by new tests above. * src/mat5.c Generalised parsing of name fields of MAT5 files. * src/mat5.c src/sndfile.c Added support for unsigned 8 bit PCM MAT5 files. * tests/write_read_test.tpl Added test for unsigned 8 bit PCM MAT5 files. * doc/index.html Added unsigned 8 bit PCM MAT5 to capabilities matrix. 2002-09-12 Erik de Castro Lopo * test/update_header_test.c tests/misc_test.c Renamed update_header_test.c to misc_test.c. Added zero_data_test() to check for case where file is opened for write and closed immediately. The resulting file can be left in a state where libsndfile cannot open it. Problem reported by Werner Schweer, the author of Muse. * src/aiff.c Removed superfluous cast. * src/wav.c src/svx.c Fixed case of file generated with no data. Removed superfluous cast. * src/sndfile.c Fixed error on IA64 platform caused by incorrect termination of SndfileErrors struct array. This problem was found in the Debian buildd logs (http://buildd.debian.org/). * configure.in Added Octave directory. * Octave/Makefile.ma New Makfile.am for Octave directory. * Octave/sndfile_load.m Octave/sndfile_save.m Octave/sndfile_play.m New files for working with Octave. * doc/octave.html Document explaining the use of the above three Octave scripts. 2002-09-10 Erik de Castro Lopo * src/sndfile.c Fixed bug in RDWR mode. 2002-09-09 Erik de Castro Lopo * src/common.c Fixed psf_get_date_str() for systems which don't have gmtime_r() or gmtime(). * src/file_io.c Added #include for Win32. Reported by Koen Tanghe. 2002-09-08 Erik de Castro Lopo * src/common.c Added 'S' format specifier for psf_binheader_writef() which writes a C string, including single null terminator to the header. Added 'j' format specifier to allow jumping forwards or backwards in the header. Added function psf_get_date_str(). * src/mat5.c Complete read and write support. * doc/index.html Added entries for MAT4 and MAT5 in capabilities matrix. 2002-09-06 Erik de Castro Lopo * src/mat4.c Completed read and write support. * src/common.h src/sndfile.c Added MAT4 and MAT5 specific error messages. * tests/write_read_test.tpl tests/Makefile.am Added tests for MAT4 and MAT5 files. * tests/stdio_test.c tests/stdout_test.c tests/stdin_test.c Added tests for MAT4 and MAT5 files. 2002-09-05 Erik de Castro Lopo * src/command.c Added elements for SF_FORMAT_MAT4 and SF_FORMAT_MAT5 to major_formats array. * examples/sfconvert.c Added mat4 and mat5 output targets. 2002-09-04 Erik de Castro Lopo * src/sndfile.c Added check to prevent errors openning read only formats for read/write. * src/interleave.c New file for interleaving non-interleaved data. Non-interleaved data is only supported on read. * src/Makefile.am Added src/interleave.c to build. 2002-09-03 Erik de Castro Lopo * src/double64.c src/common.h Added double64_be_read(), double64_le_read(), double64_be_write() and double64_le_write() which replace double64_read() and double64_write(). * src/common.c Cleanup of psf_binheader_readf() and add ability to read big and little endian doubles (required by mat4.c and mat5.c). Add ability for psf_binheader_writef() to write doubles to sound file headers. 2002-09-01 Erik de Castro Lopo * src/mat5.c New file for reading Matlab (tm) version 5 data files. This is also the native binary file format for version 2.1.X of GNU Octave which will be used for testing. Not complete yet. * src/mat4.c New file for reading Matlab (tm) version 4.2 data files. This is also the native binary file format for version 2.0.X of GNU Octave which will be used for testing. Not complete yet. * src/sndfile.h.in src/sndfile.c src/common.h src/command.c src/Makefile.am Mods to add Matlab files. * src/common.[ch] Added readf_endian field to SF_PRIVATE struct allowing endianness to remembered across calls to sf_binheader_readf(). Fixed bug in width_specifier behaviour for printing hex values. 2002-08-31 Erik de Castro Lopo * src/file_io.c Check return value of close() call in psf_fclose(). 2002-08-24 Erik de Castro Lopo * src/ms_adpcm.c Commented out some code where 0x10000 was being subtracted from a short and the result assigned to a short again. Andrew Zaja found this. 2002-08-23 Erik de Castro Lopo * doc/command.html Fixed typo found by Tommi Ilmonen. * src/ima_adpcm.c Changed type of diff from short to int to prevent errors which can occur during very rare circumstances. Thanks to FUWAFUWA. 2002-08-16 Erik de Castro Lopo * tests/floating_point_test.c Disable testing on machines without lrintf(). * Win32/Makefile.msvc Added dwd.c and wve.c to build. * configure.in Bumped version to 1.0.0. 2002-08-15 Erik de Castro Lopo * src/file_io.c Add a #include for Mac OS 9. Thanks to Stephane Letz. * src/wav.c Changed an snprintf to LSF_SNPRINTF. * doc/Makefile.am Added version-1.html. 2002-08-14 Erik de Castro Lopo * configure.in Bumped version to 1.0.rc6. * src/*.c Modified scaling of normalised floats and doubles to integers. Until now this has been done by multiplying by 0x8000 for short output, 0x80000000 for 32 bit ints and so on. Unfortunately this can cause an overflow and wrap around in the target value. All thes values have therefore been reduced to 0x7FFF, 0x7FFFFFFF and so on. The conversion from ints to normalised floats and doubles remains unchanged. This does mean that for repeated conversions normalised float -> pcm16 -> normalised float would result in a decrease in amplitude of 0x7FFF/0x8000 on every round trip. This is undesirable but less undesireable than the wrap around I am trying to avoid. * tests/floating_point_test.c Removed file hash checking because new float scaling procedure introduced above prevented the ability to crate a has on both x86 and PowerPC systems. 2002-08-13 Erik de Castro Lopo * src/txw.c Completed reading of TXW files. Seek doesn't work yet. * src/file_io.c Added a MacOS 9 replacement for ftruncate(). * MacOS/sndfile.h Added MacOS 9 header file. This should be copied into src/ to compile libsndfile for MacOS9. 2002-08-12 Erik de Castro Lopo * src/sndfile.c Fixed commands SF_SET_NORM_DOUBLE and SFC_SET_NORM_FLOAT to return their values after being set. Reported by Jussi Laako. * configure.in If autogen is not found, touch all .c and .h files in tests/. * src/common.c Added format width specifier to psf_log_printf() for %u, %d, %D and %X. * src/dwd.c Completed implementation of read only access to these files. * src/common.h src/*.c src/pcm.c Removed redundant field chars from SF_PRIVATE struct and modified pcm_init() to do without it. 2002-08-11 Erik de Castro Lopo * src/wve.c New file implementing read of Psion Alaw files. This will be a read only format. Implementation complete. * src/dwd/c Started implementation of DiamondWare Digitized files. Also read only, not complete. * src/wav.c Add parsing of 'smpl' chunk. * src/paf.c Fixed reading on un-normalized doubles and floats from 24 bit PAF files. This brings it into line with the reading of 8 bit files into un-normalized doubles which returns values in the range [-128, 127]. * src/common.c Modified psf_log_printf() to accept the %% conversion specifier to allow printing of a single '%'. * src/sds.c Read only of 16 bit samples is working. Need to build a test harness for this and other read only formats. 2002-08-10 Erik de Castro Lopo * configure.in Added --enable-experimental configure option. Removed pkg-config message at the end of the configure process. * src/sds.c src/txw.c src/rx2.c src/sd2.c Moved all the code in these files inside #if ENABLE_EXPERIMENTAL_CODE blocks and added new *_open() function for the case where experimental is not enabled. These new functions just return SFE_UNIMPLMENTED. * Win32/sndfile.h src/sndfile.h.in src/common.h Removed un-necessary #pragma pack commands. * src/file_io.c Implemented psf_ftruncate() and much other hacking for Win32. * Win32/Makefile.msvc Updated. * doc/win32.html Updated to include the copying of the sndfile.h file from the Win32/ directory to the src/ directory. * Make.bat Batch file to make compiling on Wi32 a little easier. Implements "make" and "make check". 2002-08-09 Erik de Castro Lopo * src/file_io.c Add place holder for ftruncate() on Win32 which doesn't have ftruncate(). This will need to be fixed later. * src/sndfile.h.in New file (copy of sndfile.h) with sets up @TYPEOF_SF_COUNT_T@ which will be replaced by the correct type during configure. * configure.in Modified to find a good type for TYPEOF_SF_COUNT_T. * src/aiff.c Fixed a bug when reading malformed headers. * src/common.c Set read values to zero before performing read. 2002-08-08 Erik de Castro Lopo * doc/command.html Fixed some HTML tags which were not allowing jumps to links within the page. * src/sds.c Massive hacking on this. * src/wav.c Added recognition of 'clm ' tag. 2002-08-07 Erik de Castro Lopo * doc/index.html Added beginning of a capabilities list beyond simple file formats which can be read/written. * src/aiff.c Added parsing of INST and MARK chunks of AIFF files. At the moment this data is simply recorded in the log buffer. Later it will be possible to read this data from an application using sf_command(). * src/wav.c Added parsing of 'cue ' chunk which contains loop information in WAV files. * exampes/sndfile-info.c Changed reporting of Samples to Frames. * src/wav.c src/w64.c src/aiff.c src/wav_w64.h Moved from a samples to a frames nomenclature to avoid confusion. * doc/FAQ.html What's the best format for storing temporary files? * src/sds.c New file for reading/writing Midi Sample Dump Standard files. * src/Makefile.am src/sndfile.c src/common.[ch] Added hooks for sds.c. * examples/sndfile-info.c Changed from using sf_perror() to using sf_error_str(). 2002-08-06 Erik de Castro Lopo * doc/api.html Added explanation of mode parameter for sf_open(). Added explanation of usage of SFM_* values in sf_seek(). * src/sndfile.[ch] src/command.c src/file_io.c src/common.h Implemented SFC_FILE_TRUNCATE to allow a file to be truncated. File truncation was suggested by James McCartney. * src/command.html Documented SFC_FILE_TRUNCATE. * tests/command_test.c Add tests for SFC_FILE_TRUNCATE. * src/sndfile.c Added a thrid parameter to the VALIDATE_SNDFILE_AND_ASSIGN_PSF macro to make resetting the error number optional. All uses of the macro other than in error reporting functions were changed to reset the error number. * src/pcm.c Fixed a bug were sf_read_* was logging an SFE_SHORT_READ even when no error occurred. * tests/write_read_test.tpl Added tests of internal error state. 2002-08-05 Erik de Castro Lopo * src/GSM610/private.h src/GSM610/*.c src/GSM610/Makefile.am Renamed private.h to gsm610_priv.h to prevent clash with other headers named private.h in other directories. (Probably only a problem on MacOS 9). * src/G72x/private.h src/G72x/*.c src/G72x/Makefile.am Renamed private.h to g72x_priv.h to prevent clash with other headers named private.h in other directories. (Probably only a problem on MacOS 9). * MacOS/config.h Changed values of HAVE_LRINT and HAVE_LRINTF to force use of code in float_cash.h. * src/sndfile.h Changes the name of samples field of the SF_INFO to frames. The old name had caused too much confusion and it simply had to be changed. There will be at least one more pre-release. 2002-08-04 Erik de Castro Lopo * doc/index.html Updated formats matrix to include RAW (header-less) GSM 6.10. Fix specificaltion of table and spelling mistakes. * src/sndfile.c src/command.c Fixed bug in SFC_CALC_MAX_SIGNAL family and psf_calc_signal_max (). * tests/command.c Removed cruft. Added test for SFC_CALC_MAX_SIGNAL and SFC_CALC_NORM_MAX_SIGNAL. * configure.in Update version to 1.0.0rc5. * sfendian.h Removed inclusion of un-necessary header. 2002-08-03 Erik de Castro Lopo * src/aiff.c Minor fixes of info written to log buffer. * src/float_cast.h Add definition of HAVE_LRINT_REPLACEMENT. * tests/floating_point_test.c Fix file hash check on systems without lrint/lrintf. * tests/dft_cmp.c Limit SNR to less than -500.0dB. * examples/sndfile2oct.c Fixed compiler warnings. * doc/api.html Fixed error where last parameter of sf_error_str() was sf_count_t instead of size_t. 2002-08-02 Erik de Castro Lopo * doc/FAQ.html Why doesn't libsndfile do interleaving/de-interleaving. * tests/pcm_test.tpl On Win32 do not perform hash check on files containing doubles. 2002-08-01 Erik de Castro Lopo * src/common.h Defined SF_COUNT_MAX_POSITIVE() macro, a portable way of setting variables of type sf_count_t to their maximum positive value. * src/dwvw.c src/w64.c Used SF_COUNT_MAX_POSITIVE(). 2002-07-31 Erik de Castro Lopo * src/paf.c Fixed bug in reading/writing of 24 bit PCM PAF files on big endian systems. * tests/floating_point_tests.c Fixed hash values for 24 bit PCM PAF files. Disabled file has check if lrintf() function is not available and added warning. Decreased level of signal from a peak of 1.0 to a value of 0.95 to prevent problems on platforms without lrintf() ie Solaris. 2002-07-30 Erik de Castro Lopo * src/wav.c Fixed a problem with two different kinds of mal-formed WAV file header. The first had the 'fact' chunk before the 'fmt ' chunk, the other had an incomplete 'INFO' chunk at the end of the file. * src/w64.c Added fix to allow differentiation between W64 files and ACID files. * src/au_g72x.c src/common.h src/sndfile.c Added error for G72x encoded files with more than one channel. * tests/pcm_test.tpl tests/utils.tpl Moved function check_file_hash_or_die() to utils.tpl. Function was then modified to calculate the has of the whole file. * src/wav.c Fixed problem writing the 'fact' chunk on big endian systems. * tests/sfconvert.c Fixed bug where .paf files were being written as Sphere NIST. 2002-07-29 Erik de Castro Lopo * src/voc.c Fix for reading headers generated using SFC_UPDATE_HEADER_NOW. * doc/command.html Add docs for SFC_UPDATE_HEADER_NOW and SFC_SET_UPDATE_HEADER_AUTO. 2002-07-28 Erik de Castro Lopo * man/sndfile-info.1 man/sndfile-play.1 Added manpages supplied by Joshua Haberman the Debian maintainer for libsndfile. Additional tweaks by me. * configure.in man/Makefile.am Hooked manpages into autoconf/automake system. * src/sndfile.c Added hooks for SFC_SET_UPDATE_HEADER_AUTO. * tests/update_header_test.c Improved rigor of testing. * src/*.c Fixed problem with *_write_header() functions. 2002-07-27 Erik de Castro Lopo * doc/*.html Updates to documentation to fix problems found by wdg-html-validator. * src/common.h src/command.c Added normalize parameter to calls to psf_calc_signal_max() and psf_calc_max_all_channels(). * src/sndfile.c Added handling for commands SFC_CALC_NORM_SIGNAL_MAX and SFC_CALC_NORM_MAX_ALL_CHANNELS. * doc/command.html Added entry for SFC_CALC_NORM_SIGNAL_MAX and SFC_CALC_NORM_MAX_ALL_CHANNELS. 2002-07-26 Erik de Castro Lopo * examples/sndfile-play.c Win32/Makefile.msvc Get sndfile-play program working on Win32. The Win32 PCM sample I/O API sucks. The sndfile-play program now works on Linux, MacOSX, Solaris and Win32. 2002-07-25 Erik de Castro Lopo * doc/FAQ.html New file for frequently asked questsions. 2002-07-22 Erik de Castro Lopo * doc/api.html Documentation fixes. * src/au.[ch] src/au_g72x.c src/G72x/g72x.h Add support of 40kbps G723 ADPCM encoding. * tests/lossy_comp_test.c tests/floating_point_test.c Add tests for 40kbps G723 ADPCM encoding. * doc/index.html Update support matrix. 2002-07-21 Erik de Castro Lopo * doc/command.html Documented SFC_GET_SIMPLE_FORMAT_COUNT, SFC_GET_SIMPLE_FORMAT, SFC_GET_FORMAT_* and SFC_SET_ADD_PEAK_CHUNK. * src/sndfile.c src/pcm.c Add ability to turn on and off the addition of a PEAK chunk for floating point WAV and AIFF files. * src/sndfile.[ch] src/common.h src/command.c Added sf_command SFC_CALC_MAX_ALL_CHANNELS. Implemented by Maurizio Umberto Puxeddu. * doc/command.html Docs for SFC_CALC_MAX_ALL_CHANNELS (assisted by Maurizio Umberto Puxeddu). 2002-07-18 Erik de Castro Lopo * src/sndfile.c src/gsm610.c Finalised support for GSM 6.10 AIFF files and added support for GSM 6.10 encoded RAW (header-less) files. * src/wav.c Add support for IBM_FORMAT_MULAW and IBM_FORMAT_ALAW encodings. * src/api.html Fixed more documentation bugs. 2002-07-17 Erik de Castro Lopo * src/sndfile.h src/common.h Moved some yet-to-be-implelmented values for SF_FORMAT_* from the public header file sndfile.h to the private header file common.h to avoid confusion about the actual capabilities of libsndfile. 2002-07-16 Erik de Castro Lopo * src/aiff.c src/wav.c Fixed file parsing for WAV and AIFF files containing non-audio data after the data chunk. * src/aiff.c src/sndfile.c Add support for GSM 6.10 encoded AIFF files. * tests/lossy_comp_test.c tests/Makefile.am Add tests for GSM 6.10 encoded AIFF files. * src/*.c Fix compiler warnings. 2002-07-15 Erik de Castro Lopo * tests/command_test.c For SFC_SET_NORM_* tests, change the file format from SF_FORMAT_WAV to SF_FORMAT_RAW. * src/sndfile.c Added sf_command(SFC_TEST_ADD_TRAILING_DATA) to allow testing of reading from AIFF and WAV files with non-audio data after the audio chunk. * src/common.h Add test commands SFC_TEST_WAV_ADD_INFO_CHUNK and SFC_TEST_AIFF_ADD_INST_CHUNK. When these commands are working, they will be moved to src/sndfile.h * src/aiff.c src/wav.c Begin implementation of XXXX_command() hook for sf_command(). * tests/write_read_test.tpl Added sf_command (SFC_TEST_ADD_TRAILING_DATA) to ensure above new code was working. 2002-07-13 Erik de Castro Lopo * tests/update_header_test.c Allow read sample count == write sample count - 1 to fix problems with VOC files. * tests/write_read_test.tpl tests/pcm_test.tpl Fixed some problems in the test suite discovered by using Valgrind. 2002-07-12 Erik de Castro Lopo * tests/utils.[ch] tests/*.c Renamed check_log_buffer() to check_log_buffer_or_die(). * src/sndfile.c SFC_UPDATE_HEADER_NOW and SFC_SETUPDATE_HEADER_AUTO almost finished. Works for all file formats other than VOC. 2002-07-11 Erik de Castro Lopo * src/sndfile.[ch] src/common.h Started adding functionality to allow the file header to be updated before the file is closed on files open for SFM_WRITE. This was requested by Maurizio Umberto Puxeddu who is using libsndfile for file I/O in iCSound. * tests/update_header_test.c New test program to test that the above functionality is working correctly. * tests/peak_chunk_test.c tests/floating_point_test.c Cleanups. 2002-07-10 Erik de Castro Lopo * src/sfendian.[ch] Changed length count parameters for all endswap_XXX() functions from sf_count_t (which can be 64 bit even on 32 bit architectures) to int. These functions are only called frin inside the library, are always called with integer parameters and doing the actual calculation on 64 bit values is slow in comparision to doing it on ints. * examples/sndfile-play.c More playback hacking for Win32. 2002-07-09 Erik de Castro Lopo * src/common.c In psf_log_printf(), changed %D format conversion specifier to %M (marker) and added %D specifier for printing the sf_count_t type. * src/*.c Changed all usage of psf_log_printf() with %D format conversion specifiers to use %M conversion instead. * tests/pcm_test.tpl tests/pcm_test.def New files to autogen pcm_test.c. * src/pcm.c Fixed bug in scaling floats and doubles to 24 bit PCM and vice versa. 2002-07-08 Erik de Castro Lopo * configure.in Fix setup of $ac_cv_sys_largefile_CFLAGS so that sndfile.pc gets valid values for CFLAGS. * examples/sndfile-play.c Start adding playback support for Win32. 2002-07-07 Erik de Castro Lopo * src/*.c Worked to removed compiler warnings. Extensive refactoring. * src/common.[ch] Added function psf_memset() which works like the standard C function memset but takes and sf_count_t as the length parameter. * src/sndfile.c Replaced calls to memset(0 with calls to psf_memset() as required. 2002-07-06 Erik de Castro Lopo * src/sndfile.c Added "libsndfile : " to the start of all error messages. This was suggested by Conrad Parker author of Sweep ( http://sweep.sourceforge.net/ ). * src/sfendian.[ch] Added endswap_XXXX_copy() functions. * src/pcm.c src/float32.c src/double64.c Use endswap_XXXX_copy() functions and removed dead code. Cleanups and optimisations. 2002-07-05 Erik de Castro Lopo * src/sndfile.c src/sndfile.h Gave values to all the SFC_* enum values to allow better control of the interface as commands are added and removed. Added new command SFC_SET_ADD_PEAK_CHUNK. * src/wav.c src/aiff.c Modified wav_write_header and aiff_write_header to make addition of a PEAK chunk optional, even on floating point files. * tests/benchmark.tpl Added call to sf_command(SFC_SET_ADD_PEAK_CHUNK) to turn off addition of a PEAK chunk for the benchmark where we are trying to miximize speed. * src.pcm.c Changed tribyte typedef to something more sensible. Further conversion speed ups. 2002-07-03 Erik de Castro Lopo * src/command.c In major_formats rename "Sphere NIST" to "NIST Sphere". * src/common.c src/sfendian.c Moved all endswap_XXX_array() functions to sfendian.c. These functions will be tweaked to provide maximum performance. Since maximum performance on one platform does not guarantee maximum performance on another, a small set of functions will be written and the optimal one chosen at compile time. * src/common.h src/sfendian.h Declarations of all endswap_XXX_array() functions moved to sfendian.h. * src/Makefile.am Add sfendian.c to build targets. 2002-07-01 Erik de Castro Lopo * src/pcm.c src/sfendian.h Re-coded PCM encoders and decoders to match or better the speed of libsndfile version 0.0.28. 2002-06-30 Erik de Castro Lopo * src/wav.c Add checking for WAVPACK data in standard PCM WAV file. Return error if found. This WAVPACK is *WAY* broken. It uses the same PCM WAV file header and then stores non-PCM data. * tests/benchmark.tpl Added more tests. 2002-06-29 Erik de Castro Lopo * tests/benchmark.tpl Added conditional definition of M_PI. For Win32, set WRITE_PERMS to 0777. * Win32/Makefile.msvc Added target to make generate program on Win32. * src/samplitude.c Removed handler for Samplitude RAP file format. This file type seems rarer than hens teeth and is completely undocumented. * src/common.h src/sndfile.c src/Makefile.am Win32/Makefile.msvc Removed references to sampltiude RAP format. * tests/benchmark.tpl Benchmark program now prints the libsndfile version number when run. This program was also backported to version 0 to compare results. Version 1.0.0rc2 is faster than version 0.0.28 on most conversions but slower on some. The slow ones need to be fixed before final release. 2002-06-28 Erik de Castro Lopo * tests/benchmark.def tests/benchmark.tpl New files which generate tests/benchmark.c using Autogen. Added int -> SF_FORMAT_PCM_24 test. * tests/benchmark.c Now and Autogen output file. * tests/Makefile.am Updated for above changes. 2002-06-27 Erik de Castro Lopo * tests/benchmark.c Basic benchmark program complete. Need to convert it to Autogen. * Win32/Makefile.msvc Added benchmark.exe target. 2002-06-26 Erik de Castro Lopo * examples/generate.c New program to generate a number of different output file formats from a single input file. This allows testing of the created files. * tests/benchmark.c New test program to benchmark libsndfile. Nowhere near complete yet. * examples/Makefile.am tests/Makefile.am New make rules for the two new programs. 2002-06-25 Erik de Castro Lopo * Win32/libsndfile.def Removed definition for sf_signal_max(). * src/sndfile.c Removed cruft. * doc/index.html A number of documentation bugs were fixed. Thanks to Anand Kumria. * doc/version-1.html Minor doc updates. * configure.in Bumped version to 1.0.0rc2. * src/sf_command.h src/Makefile.am Removed the header file as it was no longer being used. Thanks to Anand Kunria for spotting this. * doc/index.html A number of documentation bugs were fixed. Thanks to Anand Kumria. 2002-06-24 Erik de Castro Lopo * src/common.h Test for Win32 before testing SIZEOF_OFF_T so that it works correctly on Win32.. * src/file_io.c Win32 fixes to ensure O_BINARY is used for file open. * doc/win32.html New file documenting the building libsndfile on Win32. * doc/*.html Updating of documentation. 2002-06-23 Erik de Castro Lopo * tests/pcm_test.c Minor changes to allow easier determination of test file name. * src/sndfile.[ch] Removed function sf_signal_max(). * examples/sndfile-play.c Changed call to sf_signal_max() to a call to sf_command(). 2002-06-22 Erik de Castro Lopo * src/format.c src/command.c Renamed format.c to command.c which will now include code for sf_command() calls to perform operations other than format commands. * src/sndfile.c src/sndfile.h Removed function sf_get_signal_max() which is replaced by commands passed to sf_command(). * src/command.c Implement commands SFC_CALC_SIGNAL_MAX. * doc/command.html Documented SFC_CALC_SIGNAL_MAX. 2002-06-21 Erik de Castro Lopo * examples/sndfile-play.c Mods to make sndfile-play work on Solaris. The program sndfile-play now runs on Linux, MaxOSX and Solaris. Win32 to come. * src/format.c Added SF_FORMAT_DWVW_* to subtype_formats array. * src/nist.c Added support for 8 bit NIST Sphere files. Example file supplied by Anand Kumria. 2002-06-20 Erik de Castro Lopo * examples/sndfile-info.c Tidy up of output format. * examnples/sndfile-play.c Mods to make sndfile-play work on MacOSX using Apple's CoreAudio API. * configure.in Add new variables OS_SPECIFIC_INCLUDES and OS_SPECIFIC_LINKS which were required to supply extra include paths and link parameters to get sndfile-play working on MacOSX. * examples/Makefile.am Use OS_SPOECIFIC_INCLUDES and OS_SPECIFIC_LINKS to build commands for sndfile-play. 2002-06-19 Erik de Castro Lopo * src/nist.c Added ability to read/write new NIST Sphere file types (A-law, u-law). Header parser was re-written from scratch. Example files supplied by Anand Kumria. * src/sndfile.c Support for A-law and u-law NIST files. * tests/Makefile.am tests/lossy_comp_test.c Tests for A-law and u-law NIST files. 2002-06-18 Erik de Castro Lopo * tests/utils.c Fixed an error in error string. 2002-06-17 Erik de Castro Lopo * acinclude.m4 Removed exit command to allow cross-compiling. * Win32/unistd.h src/file_io.c Moved contents of first file into the second file (enclosed in #ifdef). Win32/unistd.h is now an empty file but still must be there for libsndfile to compile on Win32. * src/sd2.c, src/sndfile.c: Fixes for Sound Designer II files on big endian systems. 2002-06-16 Erik de Castro Lopo * configure.in Modified to work around problems with crappy MacOSX version of sed. Added sanity check for proper values for CFLAGS. 2002-06-14 Erik de Castro Lopo * src/sndfile.c Code clean up in sf_open (). * Win32/Makefile.msvc Michael Fink's contributed MSVC++ makefile was hacked to bits and put back together in a new improved form. * src/file_io.c Fixes for Win32; _lseeki64() returns an invalid argument for calls like _lseeki64(fd, 0, SEEK_CUR) so need to use _telli64 (fd) instead. * src/common.h src/sndfile.c src/wav.c src/aiff.c Added SFE_LOG_OVERRUN error. Added termination for potential infinite loop when parsing file headers. * src/wav.c src/w64.c Fixed bug casuing incorrect header generation when opening file read/write. 2002-06-12 Erik de Castro Lopo * doc/api.html Improved the documentation to make it clearer that the file read method and the underlying file format are completely disconnected. Suggested by Josh Green. * doc/command.html Started correcting docs to take into account changes made to the operations of the sf_command () function. Not complete yet. * src/sndfile.c Reverted some changes which had broken the partially working SDII header parsing. Now have access to an iBook with OS X so reading and writing SDII files on all platforms should be a reality in the near future. On Mac this will involve reading the resource fork via the standard MacOS API. To move a file from Mac to another OS, the resource and data forks will need to be combined before transfer. The combined file will be read on both Mac and other OSes like any other file. 2002-06-08 Erik de Castro Lopo * ltmain.sh Applied a patch from http://fink.sourceforge.net/doc/porting/libtool.php which allows libsndfile to compile on MacOSX 10.1. This patch should not interfere with compiling on other OSes. * src/GSM610/private.h Changes to fix compile problems on MacOSX (see src/GSM610/ChangeLog). * src/float_cast.h Added MacOSX replacements for lrint() and lrintf(). 2002-06-05 Erik de Castro Lopo * src/sndfile.c Replaced the code to print the filename to the log buffer when a file is opened. This code seems to have been left out during the merge of sf_open_read() and sf_open_write() to make a single functions sf_open(). 2002-06-01 Erik de Castro Lopo * src/wav.c Fixed a bug where the WAV header parser was going into an infinite loop on a badly formed LIST chunk. File supplied by David Viens. 2002-05-25 Erik de Castro Lopo * configure.in Added a message at the end of the configuration process to warn about the need for the use of pkg-config when linking programs against version 1 of libsndfile. * doc/pkg-config.html New documentation file containing details of how to use pkg-config to retrieve settings for CFLAGS and library locations for linking files against version 1 of libsndfile. 2002-05-17 Erik de Castro Lopo * src/wav.c Fixed minor bug in handling of so-called ACIDized WAV files. 2002-05-16 Erik de Castro Lopo * Win32/libsndfile.def Win32/Makefile.msvc Two new files contributed by Michael Fink (from the winLAME project) which allows libsndfile to be built on windows in a MSDOS box by doing "nmake -f Makefile.msvc". Way cool! 2002-05-15 Erik de Castro Lopo * configure.in MacOSX is SSSOOOOOOO screwed up!!! I can't believe how hard it is to generate a tarball which will configure and compile on that platform. Joined the libtool mailing list to try and get some answers. 2002-05-13 Erik de Castro Lopo * configure.in Changed to autoconf version 2.50. MacOSX uses autoconf version 2.53 which is incompatible with with version 2.13 which had been using until now. The AC_SYS_LARGE_FILE macro distributed withe autoconf 2.50 is missing a few features so AC_SYS_EXTRA_LARGE file was defined to replace it. * configure.in Changed to automake version 1.5 to try and make a tarball which will work on MacOSX. 2002-05-12 Erik de Castro Lopo * src/wav_gsm610.c Changed name to gsm610.c. Added reading/writing of headerless files. * src/sndfile.c src/raw.c Added ability to read/write headerless (SF_FORMAT_RAW) GSM 6.10 files. 2002-05-11 Erik de Castro Lopo * tests/lossy_comp_test.c Clean up in preparation for Autogen-ing this file. * src/GSM610/*.[ch] Code cleanup and prepartion forgetting file seek working. Details in src/GSM610/ChangeLog. * sndfile.pc.in Testing complete. Is sndfile.m4 still needed? 2002-05-09 Erik de Castro Lopo * tests/write_read_test.tpl tests/rdwr_test.tpl Merged tests from these two programs into write_read_test.tpl and deleted rdwr_test.tpl. 2002-05-08 Erik de Castro Lopo * src/w64.c src/svx.c src/paf.c Fixed bugs in read/write mode. 2002-05-07 Erik de Castro Lopo * examples/Makefile.am Renamed sfplay.c to sndfile-play.c and sndfile_info.c to sndfile-info.c for consistency when these programs become part of the Debian package sndfile-programs. * sndfile.pc.in New file to replace sndfile-config.in. Libsndfile now uses the pkg-config model for providing installation parameters to dependant programs. * src/sndfile.c Cleanup of code in sf_open(). 2002-05-06 Erik de Castro Lopo * tests/utils.tpl tests/write_read_test.tpl More conversion to Autogen fixes and enchancements. * src/*.c Read/write mode is now working for 16, 24 and 32 bit PCM as well as 32 bit float and 64 bit double data. More tests still required. * src/Makefile.am Added DISTCLEANFILES target to remove config.status and config.last. * Win32/Makefile.am MacOS/Makefile.am Added DISTCLEANFILES target to remove Makefile. 2002-05-05 Erik de Castro Lopo * src/*.[ch] tests/rdwr_test.c More verifying workings of read/write mode. Fixing bugs found. * tests/utils.[ch] Made these files Autogen generated files. * tests/util.tpl tests/util.def New Autogen files to generate utils.[ch]. Moved some generic test functions into this file. Autogen is such a great tool! 2002-05-03 Erik de Castro Lopo * src/pcm.c src/float_cast.h Win32/config.h Fixed a couple of Win32 specific bugs pointed out by Michael Fink (maintainer of WinLAME) and David Viens. * tests/check_log_buffer.[ch] tests/utils.[ch] Moved check_log_buffer() to utils.[ch] and deleted old file. 2002-05-02 Erik de Castro Lopo * src/common.[ch] src/sndfile.c New function psf_default_seek() which will be the default seek function for things like PCM and floating point data. This default is set for both read and write in sf_open() but can be over-ridden by any codec during it's initialisation. 2002-05-01 Erik de Castro Lopo * src/au.c AU files use a data size value of -1 to mean unknown. Fixed au_open_read() to allow opening files like this. * tests/rdwr_test .c Added more tests. * src/sndfile.c Fixed bugs in read/write mode found due to improvements in the test program. 2002-04-30 Erik de Castro Lopo * tests/rdwr_test .c New file for testing read/write mode. 2002-04-29 Erik de Castro Lopo * m4/* Removed all m4 macros from this directory as they get concatenated to form the file aclocal.m4 anyway. * sndfile.m4 Moved this from the m4 directory to the root directory asn this is part of the distribution and is installed during "make install". 2002-04-29 Erik de Castro Lopo * src/float32.c Removed logging of peaks for all file formats other than AIFF and WAV. * tests/write_read_test.tpl tests/write_read_test.def New files which autogen uses to generate write_read_test.c. Doing it this way makes write_read_test.c far easier to maintain. Other test programs will be converted to autogen in the near future. * src/*.c Fixed a few bugs found when testing on Sparc (bug endian) Solaris. 2002-04-28 Erik de Castro Lopo * doc/*.html Fixed documention versioning. * configure.in Fixed a bug in the routines which search for Large File Support on systems which have large file support by defualt. 2002-04-27 Erik de Castro Lopo * src/*.[ch] Found and fixed an issue which can cause a bug in other software (I was porting Conrad Parker's Sweep program from version 0 of the library to version 1). When opening a file for write, the libsndfile code would set the sfinfo.samples field to a maximum value. * tests/write_read_test.c Added tests to detect the above problem. 2002-04-25 Erik de Castro Lopo * src/*.[ch] Finished base implementation of read/write mode. Much more testing still needed. * m4/largefile.m4 Macro for detecting Large File Standard capabilities. This macro was ripped out of the aclocal.m4 file of GNU tar-1.13. * configure.in Added detection of large file support. Files larger than 2 Gigabytes should now be supported on 64 bit platforms and many 32 bit platforms including Linux (2.4 kernel, glibc-2.2), *BSD, MacOS, Win32. * libsndfile_convert_version.py A Python script which attempts to autoconvert code written to use version 0 to version 1. 2002-04-24 Erik de Castro Lopo * src/*.[ch] Finished base implementation of read/write mode. Much more testing still needed. * tests/write_read_test.c Preliminary tests for read/write mode added. More needed. 2002-04-20 Erik de Castro Lopo * src/sndfile.[ch] Removed sf_open_read() and sf_open_write() functions,replacting them with sf_open() which takes an extra mode parameter (SF_OPEN_READ, SF_OPEN_WRITE, or SF_OPEN_RDWR). This new function sf_open can now be modified to allow opening a file formodification (RDWR). 2002-04-19 Erik de Castro Lopo * src/*.c Completed merging of separate xxx_open_read() and xxx_open_write() functions. All tests pass. 2002-04-18 Erik de Castro Lopo * src/au.c Massive refactoring required to merge au_open_read() with au_open_write() to create au_open(). 2002-04-17 Erik de Castro Lopo * src/*.c Started changes required to allow a sound file to be opened in read/write mode, with separate file pointers for read and write. This involves merging of encoder/decoder functions like pcm_read_init() and pcm_write_init() int a new function pcm_init() as well as doing something similar for all the file type specific functions ie aiff_open_read() and aiff_open_write() were merged to make the function aiff_open(). 2002-04-15 Erik de Castro Lopo * src/file_io.c New file containing psf_fopen(), psf_fread(), psf_fwrite(), psf_fseek() and psf_ftell() functions. These function will replace use of fopen/fread/fwrite etc and allow access to files larger than 2 gigabytes on a number of 32 bit OSes (Linux on x86, 32 bit Solaris user space apps, Win32 and MacOS). * src/*.c Replaced all instances of fopen with psf_open, fread with psd_read, fwrite with psf_write and so on. 2002-03-11 Erik de Castro Lopo * src/dwvw.c Finally fixed all known problems with 12, 16 and 24 bit DWVW encoding. * tests/floating_point_test.c Added tests for 12, 16 and 24 bit DWVW encoding. 2002-03-03 Erik de Castro Lopo * m4/endian.m4 Defines a new m4 macro AC_C_FIND_ENDIAN, for determining the endian-ness of the target CPU. It first checks for the definition of BYTE_ORDER in , then in and . If none of these work and the C compiler is not a cross compiler it compiles and runs a program to test for endian-ness. If the compiler is a cross compiler it makes a guess based on $target_cpu. * configure.in Modified to use AC_C_FIND_ENDIAN. * src/sfendian.h Simplified. 2002-02-23 Erik de Castro Lopo * tests/floating_point_test.c Tests completely rewritten using the dft_cmp function. Now able to calculate a quick guesstimate of the Signal to Noise Ratio of the encoder. 2002-02-15 Erik de Castro Lopo * tests/dft_cmp.[ch] New files containing functions for comparing pre and post lossily compressed data using a quickly hacked DFT. * tests/utils.[ch] New files containing functions for saving pre and post encoded data in a file readable by the GNU Octave package. 2002-02-13 Erik de Castro Lopo * m4/lrint.m4 m4/lrintf.m4 Fixed m4 macros to define HAVE_LRINT and HAVE_LRINTF even when the test is cached. 2002-02-12 Erik de Castro Lopo * tests/floating_point_test.c Fixed improper use of strncat (). 2002-02-11 Erik de Castro Lopo * tests/headerless_test.c New test program to test the ability to open and read a known file type as a RAW header-less file. 2002-02-07 Erik de Castro Lopo * tests/losy_comp_test.c Added a test to ensure that the data read from a file is not all zeros. * examples/sfconvert.c Added "-gsm610" encoding types. 2002-01-29 Erik de Castro Lopo * examples/sfconvert.c Added "-dwvw12", "-dwvw16" and "-dwvw24" encoding types. * tests/dwvw_test.c New file for testing DWVW encoder/decoder. 2002-01-28 Erik de Castro Lopo * src/dwvw.c Implemented writing of DWVW. 12 bit seems to work, 16 and 24 bit still broken. * src/aiff.c Improved reporting of encoding types. * src/voc.c Clean up. 2002-01-27 Erik de Castro Lopo * src/dwvw.c New file implementing lossless Delta Word Variable Width (DWVW) encoding. Reading 12 bit DWVW is now working. * src/aiff.c common.h sndfile.c Added hooks for DWVW encoded AIFF and RAW files. 2002-01-15 Erik de Castro Lopo * src/w64.c Robustify header parsing. * src/wav_w64.h Header file wav.h was renamed to wav_w64.h to signify sharing of definitions across the two file types. * src/wav.c src/w64.c src/wav_w64.c Refactoring. Modified and moved functions with a high degree of similarity between wav.c and w64.c to wav_w64.c. 2002-01-14 Erik de Castro Lopo * src/w64.c Completed work on getting read and write working. * examples/sfplay.c Added code to scale floating point data so it plays at a reasonable volume. * tests/Makefile.am tests/write_read_test.c Added tests for W64 files. 2002-01-13 Erik de Castro Lopo * src/*.c Modded all code in file header writing routines to use psf_new_binheader_writef(). Removed psf_binheader_writef() from src/common.c. Globally replaced psf_new_binheader_writef with psf_binheader_writef. 2002-01-12 Erik de Castro Lopo * src/*.c Modded all code in file parsing routines to use psf_new_binheader_readf(). Removed psf_binheader_readf() from src/common.c. Globally replaced psf_new_binheader_readf with psf_binheader_readf. * src/common.[ch] Added new function psf_new_binheader_writef () which will soon replace psf_binheader_writef (). The new function has basically the same function as the original but has a more flexible and capable interface. It also allows the writing of 64 bit integer values for files contains 64 bit file offsets. 2002-01-11 Erik de Castro Lopo * src/formats.c src/sndfile.c src/sndfile.h Added code allowing full enumeration of supported file formats via the sf_command () interface. This feature will allow applications to avoid needing recompilation when support for new file formats are added to libsndfile. * tests/command_test.c Added test code for the above feature. * examples/list_formats.c New file. An example of the use of the supported file enumeration interface. This program lists all the major formats and for each major format the supported subformats. 2002-01-10 Erik de Castro Lopo * src/*.[ch] tests/*.c Changed command parameter of sf_command () function from a test string to an int. The valid values for the command parameter begin with SFC_ and are listed in src/sndfile.h. 2001-12-20 Erik de Castro Lopo * src/formats.c src/sndfile.c Added an way of enumerating a set of common file formats using the sf_command () interface. This interface was suggested by Dominic Mazzoni, one of the main authors of Audacity (http://audacity.sourceforge.net/). 2001-12-26 Erik de Castro Lopo * src/sndfile.c Added checking of filename parameter in sf_open_read (). Previousy, if a NULL pointer was passed the library would segfault. 2001-12-18 Erik de Castro Lopo * src/common.c src/common.h Changed the len parameter of the endswap_*_array () functions from type int to type long. * src/pcm.c Fixed a problem which 2001-12-15 Erik de Castro Lopo * src/sndfile.c Added conditional #include for EMX/gcc on OS/2. Thanks to Paul Hartman for pointing this out. * tests/lossy_comp_test.c tests/floating_point_test.c Added definitions for M_PI for when it isn't defined in . 2001-11-30 Erik de Castro Lopo * src/ircam.c Re-implemented the header reader. Old version was making incorrect assumptions about the endian-ness of the file from the magic number at the start of the file. The new code looks at the integer which holds the number of channels and determines the endian-ness from that. 2001-11-30 Erik de Castro Lopo * src/aiff.c Added support for other AIFC types ('raw ', 'in32', '23ni'). Further work on IMA ADPCM encoding. 2001-11-29 Erik de Castro Lopo * src/ima_adpcm.c Renamed from wav_ima_adpcm.c. This file will soon handle IMA ADPCM encodings for both WAV and AIFF files. * src/aiff.c Started adding IMA ADPCM support. 2001-11-28 Erik de Castro Lopo * src/double.c New file for handling double precision floating point (SF_FORMAT_DOUBLE) data. * src/wav.c src/aiff.c src/au.c src/raw.c Added support for SF_FORMAT_DOUBLE data. * src/common.[ch] Addition of endswap_long_array () for endian swapping 64 bit integers. This function will work correctly on processors with 32 bit and 64 bit longs. Optimised endswap_short_array () and endswap_int_array (). * tests/pcm_test.c Added and extra check. After the first file of each type is written to disk a checksum is performed of the first 64 bytes and checked against a pre- calculated value. This will work whatever the endian-ness of the host machine. 2001-11-27 Erik de Castro Lopo * src/aiff.c Added handling of u-law, A-law encoded AIFF files. Thanks to Tom Erbe for supplying example files. * tests/lossy_comp_test.c Added tests for above. * src/common.h src/*.c Removed function typedefs from common.h and function pointer casting in all the other files. This allows the compiler to perform proper type checking. Hopefully this will prevernt problems like the sf_seek bug for OpenBSD, BeOS etc. * src/common.[ch] Added new function psf_new_binheader_readf () which will eventually replace psf_binheader_readf (). The new function has basically the same function as the original but has a more flexible and capable interface. It also allows the reading of 64 bit integer values for files contains 64 bit file offsets. 2001-11-26 Erik de Castro Lopo * src/voc.c Completed implementation of VOC file handling. Can now handle 8 and 16 bit PCM, u-law and A-law files with one or two channels. * src/write_read_test.c tests/lossy_comp_test.c Added tests for VOC files. 2001-11-22 Erik de Castro Lopo * src/float_cast.h Added inline asm version of lrint/lrintf for MacOS. Solution provided by Stephane Letz. * src/voc.c More work on this braindamaged format. The VOC files produced by SoX also have a number of inconsistencies. 2001-11-19 Erik de Castro Lopo * src/paf.c Added support for 8 bit PCM PAF files. * tests/write_read_test.c Added tests for 8 bit PAF files. 2001-11-18 Erik de Castro Lopo * tests/pcm_test.c New test program to test for correct scaling of integer values between different sized integer containers (ie short -> int). The new specs for libsndfile state that when the source and destination containers are of a different size, the most significant bit of the source value becomes the most significant bit of the destination container. * src/pcm.c src/paf.c Modified to pass the above test program. * tests/write_read_test.c tests/lossy_comp_test.c Modified to work with the new scaling rules. 2001-11-17 Erik de Castro Lopo * src/raw.c tests/write_read_test.c tests/write_read_test.c Added ability to do raw reads/writes of float, u-law and A-law files. * src/*.[ch] examples/*.[ch] tests/*.[ch] Removed dependance on pcmbitwidth field of SF_INFO struct and moved to new SF_FORMAT_* types and use of SF_ENDIAN_BIG/LITTLE/CPU. 2001-11-12 Erik de Castro Lopo * src/*.[ch] Started implmentation of major changes documented in doc/version1.html. Removed all usage of off_t which is not part of the ISO C standard. All places which were using it are now using type long which is the type of the offset parameter for the fseek function. This should fix problems on BeOS, MacOS and *BSD like systems which were failing "make check" because sizeof (long) != sizeof (off_t). -------------------------------------------------------------------------------- This is the boundary between version 1 of the library above and version 0 below. -------------------------------------------------------------------------------- 2001-11-11 Erik de Castro Lopo * examples/sfplay_beos.cpp Added BeOS version of sfplay.c. This needs to be compiled using a C++ compiler so is therefore not built by default. Thanks to Marcus Overhagen for providing this. 2001-11-10 Erik de Castro Lopo * examples/sfplay.c New example file showing how libsndfile can be used to read and play a sound file. At the moment on Linux is supported. Others will follow in the near future. 2001-11-09 Erik de Castro Lopo * src/pcm.c Fixed problem with normalisation code where a value of 1.0 could map to a value greater than MAX_SHORT or MAX_INT. Thanks to Roger Dannenberg for pointing this out. 2001-11-08 Erik de Castro Lopo * src/pcm.c Fixed scaling issue when reading/writing 8 bit files using sf_read/sf_write_short (). On read, values are scaled so that the most significant bit in the char ends up in the most significant bit of the short. On write, values are scaled so that most significant bit in the short ends up as the most significant bit in the char. 2001-11-07 Erik de Castro Lopo * src/au.c src/sndfile.c Added support for 32 bit float data in big and little endian AU files. * tests/write_read_test.c Added tests for 32 bit float data in AU files. 2001-11-06 Erik de Castro Lopo * tests/lossy_comp_test.c Finalised testing of stereo files where possible. 2001-11-05 Erik de Castro Lopo * src/wav_ms_adpcm.c Fixed bug in writing stereo MS ADPCM WAV files. Thanks to Xu Xin for pointing out this problem. 2001-10-24 Erik de Castro Lopo * src/wav_ms_adpcm.c Modified function srate2blocksize () to handle 44k1Hz stereo files. 2001-10-21 Erik de Castro Lopo * src/w64.c Added support for Sonic Foundry 64 bit WAV format. As Linux (my main development platform) does not yet support 64 bit file offsets by default, current handling of this file format treats everything as 32 bit and fails openning the file, if it finds anything that goes beyond 32 bit values. * src/sndfile.[hc] src/common.h src/Makefile.am Added hooks for W64 support. 2001-10-21 Erik de Castro Lopo * configure.in Added more warnings options to CFLAGS when the gcc compiler is detected. * src/*.[ch] tests/*.c examples/*.c Started fixing the warning messages due to the new CFLASG. * src/voc.c More work on VOC file read/writing. * src/paf.c Found that PAF files were not checking the normalisation flag when reading or writing floats and doubles. Fixed it. * tests/floating_point_test.c Added specific test for the above problem. * src/float_cast.h src/pcm.c Added a section for Win32 to define lrint () and lrintf () in the header and implement it in the pcm.c 2001-10-20 Erik de Castro Lopo * sndfile-config.in m4/sndfile.m4 These files were donated by Conrad Parker who also provided instructions on how to install them using autoconf/automake. * src/float_cast.h Fiddled around with this file some more. On Linux and other gcc supported OSes use the C99 functions lrintf() and lrint() for casting from floating point to int without incurring the huge perfromance penalty (particularly on the i386 family) caused by the regular C cast from float to int. These new C99 functions replace the FLOAT_TO_* and DOUBLE_TO_* macros which I had been playing with. * configure.in m4/lrint.m4 m4/lrintf.m4 Add detection of these functions. 2001-10-17 Erik de Castro Lopo * src/voc.c Completed code for reading VOC files containing a single audio data segment. Started implementing code to handle files with multiple VOC_SOUND_DATA segments but couldn't be bothered finishing it. Multiple segment files can have different sample rates for different sections and other nasties like silence and repeat segments. 2001-10-16 Erik de Castro Lopo * src/common.h src/*.c Removed SF_PRIVATE struct field fdata and replaced it with extra_data. * src/voc.c Further development of the read part of this woefult file format. 2001-10-04 Erik de Castro Lopo * src/float_cast.h Implemented gcc and i386 floating point to int cast macros. Standard cast will be used when not on gcc for i385. * src/pcm.c Modified all uses of FLOAT/DOUBLE_TO_INT and FLOAT/DOUBLE_TO_SHORT casts to comply with macros in float_cast.h. 2001-10-04 Erik de Castro Lopo * src/voc.c Changed the TYPE_xxx enum names to VOC_TYPE_xxx to prevent name clashes on MacOS with CodeWarrior 6.0. * MacOS/MacOS-readme.txt Updated the compile instructions. Probably still need work as I don't have access to a Mac. 2001-10-01 Erik de Castro Lopo * src/wav.c src/aiff.c common.c Changed all references to snprintf to LSF_SNPRINTF and all vsnprintf to LSF_VSNPRINTF. LSF_VSNPRINTF and LSF_VSNPRINTF are defined in common.h. * src/common.h Added checking of HAVE_SNPRINTF and HAVE_VSNPRINTF and defining LSF_VSNPRINTF and LSF_VSNPRINTF to appropriate values. * src/missing.c New file containing a minimal implementation of snprintf and vsnprintf functions named missing_snprintf and missing_vsnprintf respectively. These are only compliled into the binary if snprintf and/or vsnprintf are not available. 2001-09-29 Erik de Castro Lopo * src/ircam.c New file to handle Berkeley/IRCAM/CARL files. * src/sndfile.c src/common.h Modified for IRCAM handling. * tests/*.c Added tests for IRCAM files. 2001-09-27 Erik de Castro Lopo * src/wav.c Apparently microsoft windows (tm) doesn't like ulaw and Alaw WAV files with 20 byte format chunks (contrary to ms's own documentation). Fixed the WAV header writing code to generate smaller ms compliant ulaw and Alaw WAV files. 2001-09-17 Erik de Castro Lopo * tests/stdio_test.sh tests/stdio_test.c Shell script was rewritten as a C program due to incompatibilities of the sh shell on Linux and Solaris. 2001-09-16 Erik de Castro Lopo * tests/stdio_test.sh tests/stdout_test.c tests/stdin_test.c New test programs to verify the correct operation of reading from stdin and writing to stdout. * src/sndfile.c wav.c au.c nist.c paf.c Fixed a bugs uncovered by the new test programs above. 2001-09-15 Erik de Castro Lopo * src/sndfile.c wav.c Fixed a bug preventing reading a file from stdin. Found by T. Narita. 2001-09-12 Erik de Castro Lopo * src/common.h Fixed a problem on OpenBSD 2.9 which was causing sf_seek() to fail on IMA WAV files. Root cause was the declaration of the func_seek typedef not matching the functions it was actually being used to point to. In OpenBSD sizeof (off_t) != sizeof (int). Thanks to Heikki Korpela for allowing me to log into his OpenBSD machine to debug this problem. 2001-09-03 Erik de Castro Lopo * src/sndfile.c Implemented sf_command ("norm float"). * src/*.c Implemented handling of sf_command ("set-norm-float"). Float normalization can now be turned on and off. * tests/double_test.c Renamed to floating_point_test.c. Modified to include tests for all scaled reads and writes of floats and doubles. * src/au_g72x.c Fixed bug in normalization code found with improved floating_point_test program. * src/wav.c Added code for parsing 'INFO' and 'LIST' chunks. Will be used for extract text annotations from WAV files. * src/aiff.c Added code for parsing '(c) ' and 'ANNO' chunks. Will be used for extract text annotations from WAV files. 2001-09-02 Erik de Castro Lopo * examples/sf_info.c example/Makefile.am Renamed to sndfile_info.c. The program sndfile_info will now be installed when the library is installed. * src/float_cast.h New file defining floating point to short and int casts. These casts will eventually replace all flot and double casts to short and int. See comments at the top of the file for the reasoning. * src/*.c Changed all default float and double casts to short or int with macros defined in floatcast.h. At the moment these casts do nothing. They will be replaced with faster float to int cast operations in the near future. 2001-08-31 Erik de Castro Lopo * tests/command_test.c New file for testing sf_command () functionality. * src/sndfile.c Revisiting of error return values of some functions. Started implementing sf_command () a new function will allow on-the-fly modification of library behaviour, or instance, sample value scaling. * src/common.h Added hook for format specific sf_command () calls to SNDFILE struct. * doc/api.html Updated and errors corrected. * doc/command.html New documentation file explaining new sf_command () function. 2001-08-11 Erik de Castro Lopo * src/sndfile.c Fixed error return values from sf_read*() and sf_write*(). There were numerous instances of -1 being returned through size_t. These now all set error int the SF_PRIVATE struct and return 0. Thanks to David Viens for spotting this. 2001-08-01 Erik de Castro Lopo * src/common.c Fixed use of va_arg() calls that were causing warning messages with the latest version of gcc (thanks Maurizio Umberto Puxeddu). 2001-07-25 Erik de Castro Lopo * src/*.c src/sfendian.h Moved definition of MAKE_MARKER macro to sfendian.h 2001-07-23 Erik de Castro Lopo * src/sndfile.c Modified sf_get_lib_version () so that version string will be visible using the Unix strings command. * examples/Makefile.am examples/sfinfo.c Renamed sfinfo program and source code to sf_info. This prevents a name clash with the program included with libaudiofile. 2001-07-22 Erik de Castro Lopo * tests/read_seek_test.c tests/lossy_comp_test.c Added tests for sf_read_float () and sf_readf_float (). * src/voc.c New files for handling Creative Voice files (not complete). * src/samplitude.c New files for handling Samplitude files (not complete). 2001-07-21 Erik de Castro Lopo * src/aiff.c src/au.c src/paf.c src/svx.c src/wav.c Converted these files to using psf_binheader_readf() function. Will soon be ready to attempt to make reading writing from pipes work reliably. * src/*.[ch] Added code for sf_read_float () and sf_readf_float () methods of accessing file data. 2001-07-20 Erik de Castro Lopo * src/paf.c src/wav_gsm610.c Removed two printf()s which had escaped notice for some time (thanks Sigbjørn Skjæret). 2001-07-19 Erik de Castro Lopo * src/wav_gsm610.c Fixed a bug which prevented GSM 6.10 encoded WAV files generated by libsndfile from being played in Windoze (thanks klay). 2001-07-18 Erik de Castro Lopo * src/common.[ch] Implemented psf_binheader_readf() which will do for file header reading what psf_binheader_writef() did for writing headers. Will eventually allow libsndfile to read and write from pipes, including named pipes. 2001-07-16 Erik de Castro Lopo * MacOS/config.h Win32/config.h Attempted to bring these two files uptodate with src/config.h. As I don't have access to either of these systems support for them may be completely broken. 2001-06-18 Erik de Castro Lopo * src/float32.c Fixed bug for big endian processors that can't read 32 bit IEEE floats. Now tested on Intel x86 and UltraSparc processors. 2001-06-13 Erik de Castro Lopo * src/aiff.c Modified to allow REX files (from Propellorhead's Recycle and Reason programs) to be read. REX files are basically an AIFF file with slightly unusual sequence of chunks (AIFF files are supposed to allow any sequence) and some extra application specific information. Not yet able to write a REX file as the details of the application specific data is unknown. 2001-06-12 Erik de Castro Lopo * src/wav.c Fixed endian bug when reading PEAK chunk on big endian machines. * src/common.c Fixed endian bug when reading PEAK chunk on big endian machines with --enable-force-broken-float configure option. Fix psf_binheader_writef for (FORCE_BROKEN_FLOAT ||______) 2001-06-07 Erik de Castro Lopo * configure.in src/config.h.in Removed old CAN_READ_WRITE_x86_IEEE configure variable now that float capabilities are detected at run time. Added FORCE_BROKEN_FLOAT to allow testing of broken float code on machines where the processor can in fact handle floats correctly. * src/float32.c Rejigged code reading and writing of floats on broken processors. * m4/ Removed this directory and all its files as they are no longer needed. 2001-06-05 Erik de Castro Lopo * tests/peak_chunk_test.c New test to validate reading and writing of peak chunk. * examples/sfconvert Added -float32 option. * src/*.c Changed all error return values to negative values (ie the negative of what they were). * src/sndfile.c tests/error_test.c Modified to take account of the previous change. 2001-06-04 Erik de Castro Lopo * src/float32.c File renamed from wav_float.c and renamed function to something more general. Added runtime detection of floating point capabilities. Added recording of peaks during write for generation of PEAK chunk. * src/wav.c src/aiff.c Added handing for PEAK chunk for floating point files. PEAK is read when the file headers are read and generated when the file is closed. Logic is in place for adding PEAK chunk to end of file when writing to a pipe (reading and writing from/to pipe to be implemented soon). * src/sndfile.c Modified sf_signal_max () to use PEAK values if present. 2001-06-03 Erik de Castro Lopo * src/*.c Added pcm_read_init () and pcm_write_init () to src/pcm.c and removed all other calls to functions in this file from the filetype specific files. * src/*.c Added alaw_read_init (), alaw_write_int (), ulaw_read_init () and ulaw_write_init () and removed all other calls to functions in alaw.c and ulaw.c from the filetype specific files. * tests/write_read_test.c Added tests to validate sf_seek () on all file types. * src/raw.c Implemented raw_seek () function to fix a bug where sf_seek (file, 0, SEEK_SET) on a RAW file failed. * src/paf.c Fixed a bug in paf24_seek () found due to added seeks tests in tests/write_read_test.c 2001-06-01 Erik de Castro Lopo * tests/read_seek_test.c Fixed a couple of broken binary files. * src/aiff.c src/wav.c Added handling of PEAK chunks on file read. 2001-05-31 Erik de Castro Lopo * check_libsndfile.py New file for the regression testing of libsndfile. check_libsndfile.py is a Python script which reads in a file containing filenames of audio files. Each file is checked by running the examples/sfinfo program on them and checking for error or warning messages in the libsndfile log buffer. * check_libsndfile.list This is an example list of audio files for use with check_libsndfile.py * tests/lossy_comp_test.c Changed the defined value of M_PI for math header files which don't have it. This fixed validation test failures on MetroWerks compilers. Thanks to Lord Praetor Satanus of Acheron for bringing this to my attention. 2001-05-30 Erik de Castro Lopo * src/common.[ch] Removed psf_header_setf () which was no longer required after refactoring and simplification of header writing. Added 'z' format specifier to psf_binheader_writef () for zero filling header with N bytes. Used by paf.c and nist.c * tests/check_log_buffer.c New file implementing check_log_buffer () which reads the log buffer of a SNDFILE* object and searches for error and warning messages. Calls exit () if any are found. * tests/*.c Added calls to check_log_buffer () after each call to sf_open_XXX (). 2001-05-29 Erik de Castro Lopo * src/wav.c src/wav_ms_adpcm.c src/wav_gsm610.c Major rehack of header writing using psf_binheader_writef (). 2001-05-28 Erik de Castro Lopo * src/wav.c src/wav_ima_adpcm.c Major rehack of header writing using psf_binheader_writef (). 2001-05-27 Erik de Castro Lopo * src/wav.c Changed return type of get_encoding_str () to prevent compiler warnings on Mac OSX. * src/aiff.c src/au.c Major rehack of header writing using psf_binheader_writef (). 2001-05-25 Erik de Castro Lopo * src/common.h src/common.c Added comments. Name of log buffer changed from strbuffer to logbuffer. Name of log buffer index variable changed from strindex to logindex. * src/*.[ch] Changed name of internal logging function from psf_sprintf () to psf_log_printf (). Changed name of internal header generation functions from psf_[ab]h_printf () to psf_asciiheader_printf () and psf_binheader_writef (). Changed name of internal header manipulation function psf_hsetf () to psf_header_setf (). 2001-05-24 Erik de Castro Lopo * src/nist.c Fixed reading and writing of sample_byte_format header. "01" means little endian and "10" means big endian regardless of bit width. * configure.in Detect Mac OSX and disable -Wall and -pedantic gcc options. Mac OSX is way screwed up and spews out buckets of warning messages from the system headers. Added --disable-gcc-opt configure option (sets gcc optimisation to -O0 ) for easier debugging. Made decision to harmonise source code version number and .so library version number. Future releases will stick to this rule. * doc/new_file_type.HOWTO New file to document the addition of new file types to libsndfile. 2001-05-23 Erik de Castro Lopo * src/nist.c New file for reading/writing Sphere NIST audio file format. Originally requested by Elis Pomales in 1999. Retrieved from unstable (and untouched for 18 months) branch of libsndfile. Some vital information gleaned from the source code to Bill Schottstaedt's sndlib library : ftp://ccrma-ftp.stanford.edu/pub/Lisp/sndlib.tar.gz Currently reading and writing 16, 24 and 32 bit, big-endian and little endian, stereo and mono files. * src/common.h src/common.c Added psf_ah_printf () function to help construction of ASCII headers (ie NIST). * configure.in Added test for vsnprintf () required by psf_ah_printf (). * tests/write_read_test.c Added tests for supported NIST files. 2001-05-22 Erik de Castro Lopo * tests/write_read_test.c Added tests for little endian AIFC files. * src/aiff.c Minor re-working of aiff_open_write (). Added write support for little endian PCM encoded AIFC files. 2001-05-13 Erik de Castro Lopo * src/aiff.c Minor re-working of aiff_open_read (). Added read support for little endian PCM encoded AIFC files from the Mac OSX CD ripper program. Guillaume Lessard provided a couple of sample files and a working patch. The patch was not used as is but gave a good guide as to what to do. 2001-05-11 Erik de Castro Lopo * src/sndfile.h Fixed comments about endian-ness of WAV and AIFF files. Guillaume Lessard pointed out the error. 2001-04-23 Erik de Castro Lopo * examples/make_sine.c Re-write of this example using sample rate and required frequency in Hz. 2001-02-11 Erik de Castro Lopo * src/sndfile.c Fixed bug that prevented known file types from being read as RAW PCM data. 2000-12-16 Erik de Castro Lopo * src/aiff.c Added handing of COMT chunk. 2000-11-16 Erik de Castro Lopo * examples/sfconvert.c Fixed bug in normalisatio code. Pointed out by Johnny Wu. 2000-11-08 Erik de Castro Lopo * Win32/config.h Fixed the incorrect setting of HAVE_ENDIAN_H parameter. Win32 only issue. 2000-10-27 Erik de Castro Lopo * tests/Makefile.am Added -lm for write_read_test_LDADD. 2000-10-16 Erik de Castro Lopo * src/sndfile.c src/au.c Fixed bug which prevented writing of G723 24kbps AU files. * tests/lossy_comp_test.c Corrrection to options for G723 tests. * configure.in Added --disable-gcc-pipe option for DJGPP compiler (gcc on MS-DOS) which doesn't allow gcc -pipe option. 2000-09-03 Erik de Castro Lopo * src/ulaw.c src/alaw.c src/wav_imaadpcm.c src/msadpcm.c src/wav_gsm610.c Fixed normailsation bugs shown up by new double_test program. 2000-08-31 Erik de Castro Lopo * src/pcm.c Fixed bug in normalisation code (spotted by Steve Lhomme). * tests/double_test.c New file to test scaled and unscaled sf_read_double() and sf_write_double() functions. 2000-08-28 Erik de Castro Lopo * COPYING Changed to the LGPL COPYING file (spotted by H. S. Teoh). 2000-08-21 Erik de Castro Lopo * src/sndfile.h Removed prototype of unimplemented function sf_get_info(). Added prototype for sf_error_number() Thanks to Sigbjørn Skjæret for spotting these. 2000-08-18 Erik de Castro Lopo * src/newpcm.h New file to contain a complete rewrite of the PCM data handling. 2000-08-15 Erik de Castro Lopo * src/sndfile.c Fixed a leak of FILE* pointers in sf_open_write(). Thanks to Sigbjørn Skjæret for spotting this one. 2000-08-13 Erik de Castro Lopo * src/au_g72x.c src/G72x/g72x.c Added G723 encoded AU file support. * tests/lossy_comp_test.c Added tests for G721 and G723 encoded AU files. 2000-08-06 Erik de Castro Lopo * all files Changed the license to LGPL. Albert Faber who had copyright on Win32/unistd.h gave his permission to change the license on that file. All other files were either copyright erikd AT zipworld DOT com DOT au or copyright under a GPL/LGPL compatible license. 2000-08-06 Erik de Castro Lopo * tests/lossy_comp_test.c Fixed incorrect error message. * src/au_g72x.c src/G72x/* G721 encoded AU files now working. * Win32/README-Win32.txt Replaced this file with a new one which gives a full explanation of how to build libsndfile under Win32. Thanks to Mike Ricos. 2000-08-05 Erik de Castro Lopo * src/*.[ch] Removed double leading underscores from the start of all variable and function names. Identifiers with a leading underscores are reserved for use by the compiler. * src/au_g72x.c src/G72x/* Continued work on G721 encoded AU files. 2000-07-12 Erik de Castro Lopo * src/G72x/* New files for reading/writing G721 and G723 ADPCM audio. These files are from a Sun Microsystems reference implementation released under a free software licence. Extensive changes to this code to make it fit in with libsndfile. See the ChangeLog in this directory for details. * src/au_g72x.c New file for G721 encoded AU files. 2000-07-08 Erik de Castro Lopo * libsndfile.spec.in Added a spec file for making RPMs. Thanks to Josh Green for supplying this. 2000-06-28 Erik de Castro Lopo * src/sndfile.c src/sndfile.h Add checking for and handling of header-less u-law encoded AU/SND files. Any file with a ".au" or ".snd" file extension and without the normal AU file header is treated as an 8kHz, u-law encoded file. * src/au.h New function for opening a headerless u-law encoded file for read. 2000-06-04 Erik de Castro Lopo * src/paf.c Add checking for files shorter than minimal PAF file header length. 2000-06-02 Erik de Castro Lopo * tests/write_read_test.c Added extra sf_perror() calls when sf_write_XXXX fails. 2000-05-29 Erik de Castro Lopo * src/common.c Modified usage of va_arg() macro to work correctly on PowerPC Linux. Thanks to Kyle Wheeler for giving me ssh access to his machine while I was trying to track this down. * configure.in src/*.[ch] Sorted out some endian-ness issues brought up by PowerPC Linux. * tests/read_seek_test.c Added extra debugging for when tests fail. 2000-05-18 Erik de Castro Lopo * src/wav.c Fixed bug in GSM 6.10 handling for big-endian machines. Thanks to Sigbjørn Skjæret for reporting this. 2000-04-25 Erik de Castro Lopo * src/sndfile.c src/wav.c src/wav_gsm610.c Finallised writing of GSM 6.10 WAV files. * tests/lossy_comp_test.c Wrote new test code for GSM 6.10 files. * examples/sfinfo.c Fixed incorrect format in printf() statement. 2000-04-06 Erik de Castro Lopo * src/sndfile.h.in Fixed comments about sf_perror () and sf_error_str (). 2000-03-14 Erik de Castro Lopo * configure.in Fixed --enable-justsrc option. 2000-03-07 Erik de Castro Lopo * wav.c Fixed checking of bytespersec field of header. Still some weirdness with some files. 2000-03-05 Erik de Castro Lopo * tests/lossy_comp_test.c Added option to test PCM WAV files (sanity check). Fixed bug in sf_seek() tests. 2000-02-29 Erik de Castro Lopo * src/sndfile.c src/wav.c Minor changes to allow writing of GSM 6.10 WAV files. 2000-02-28 Erik de Castro Lopo * configure.in Makefile.am src/Makefile.am Finally got around to figuring out how to build a single library from multiple source directories. Reading GSM 6.10 files now seems to work. 2000-01-03 Erik de Castro Lopo * src/wav.c Added more error reporting in read_fmt_chunk(). 1999-12-21 Erik de Castro Lopo * examples/sfinfo.c Modified program to accept multiple filenames from the command line. 1999-11-27 Erik de Castro Lopo * src/wav_ima_adpcm.c Moved code around in preparation to adding ability to read/write IMA ADPCM encoded AIFF files. 1999-11-16 Erik de Castro Lopo * src/common.c Fixed put_int() and put_short() macros used by _psf_hprintf() which were causing seg. faults on Sparc Solaris. 1999-11-15 Erik de Castro Lopo * src/common.c Added string.h to includes. Thanks to Sigbjxrn Skjfret. * src/svx.c Fixed __svx_close() function to ensure FORM and BODY chunks are correctly set. 1999-10-01 Erik de Castro Lopo * src/au.c Fixed handling of incorrect size field in AU header on read. Thanks to Christoph Lauer for finding this problem. 1999-09-28 Erik de Castro Lopo * src/aiff.c Fixed a bug with incorrect SSND chunk length being written. This also lead to finding an minor error in AIFF header parsing. Thanks to Dan Timis for pointing this out. 1999-09-24 Erik de Castro Lopo * src/paf.c Fixed a bug with reading and writing 24 bit stereo PAF files. This problem came to light when implementing tests for the new functions which operate in terms of frames rather than items. 1999-09-23 Erik de Castro Lopo * src/sndfile.c Modified file type detection to use first 12 bytes of file rather than file name extension. Required this because NIST files use the same filename extension as Microsoft WAV files. * src/sndfile.c src/sndfile.h Added short, int and double read/write functions which work in frames rather than items. This was originally suggested by Maurizio Umberto Puxeddu. 1999-09-22 Erik de Castro Lopo * src/svx.c Finished off implementation of write using __psf_hprintf(). 1999-09-21 Erik de Castro Lopo * src/common.h Added a buffer to SF_PRIVATE for writing the header. This is required to make generating headers for IFF/SVX files easier as well as making it easier to do re-write the headers which will be required when sf_rewrite_header() is implemented. * src/common.c Implemented __psf_hprintf() function. This is an internal function which is documented briefly just above the code. 1999-09-05 Erik de Castro Lopo * src/sndfile.c Fixed a bug in sf_write_raw() where it was returning incorrect values (thanks to Richard Dobson for finding this one). Must put in a test routine for sf_read_raw and sf_write_raw. * src/aiff.c Fixed default FORMsize in __aiff_open_write (). * src/sndfile.c Added copy of filename to internal data structure. IFF/SVX files contain a NAME header chunk. Both sf_open_read() and sf_open_write() copy the file name (less the leading path information) to the filename field. * src/svx.c Started implementing writing of files. 1999-08-04 Erik de Castro Lopo * src/svx.c New file for reading/writing 8SVX and 16SVX files. * src/sndfile.[ch] src/common.h Changes for SVX files. * src/aiff.c Fixed header parsing when unknown chunk is found. 1999-08-01 Erik de Castro Lopo * src/paf.c New file for reading/writing Ensoniq PARIS audio file format. * src/sndfile.[ch] src/common.h Changes for PAF files. * src/sndfile.[ch] Added stuff for sf_get_lib_version() function. 1999-07-31 Erik de Castro Lopo * src/sndfile.h MacOS/config.h Fixed minor MacOS configuration issues. 1999-07-30 Erik de Castro Lopo * MacOS/ Added a new directory for the MacOS config.h file and the readme file. * src/aiff.c Fixed calculation of datalength when reading SSND chunk. Thanks to Sigbjørn Skjæret for pointing out this error. 1999-07-29 Erik de Castro Lopo * src/sndfile.c src/sndfile.h src/raw.c Further fixing of #includes for MacOS. 1999-07-25 Erik de Castro Lopo * src/wav.c src/aiff.c Added call to ferror () in main header parsing loop of __XXX_open_read functions. This should fix problems on platforms (MacOS, AmigaOS) where fseek()ing or fread()ing beyond the end of the file puts the FILE* stream in an error state until clearerr() is called. * tests/write_read_test.c Added tests for RAW header-less PCM files. * src/common.h Moved definition of struct tribyte to pcm.c which is the only place which needs it. * src/pcm.c Modified all code which assumed sizeof (struct tribyte) == 3. This code did not work on MacOS. Thanks to Ben "Jacobs" for pointing this out. * src/au.c Removed from list of #includes (not being used). * src/sndfile.c Added MacOS specific #ifdef to replace . * src/sndfile.h Added MacOS specific #ifdef to replace . * src/sndfile.h Added MacOS specific typedef for off_t. * MacOS-readme.txt New file with instructions for building libsndfile under MacOS. Thanks to Ben "Jacobs" for supplying these instructions. 1999-07-24 Erik de Castro Lopo * configure.in Removed sndfile.h from generated file list as there were no longer any autoconf substitutions being made. * src/raw.c New file for handling raw header-less PCM files. In order to open these for read, the user must specify format, pcmbitwidth and channels in the SF_INFO struct when calling sf_open_read (). * src/sndfile.c Added support for raw header-less PCM files. 1999-07-22 Erik de Castro Lopo * examples/sfinfo.c Removed options so the sfinfo program always prints out all the information. 1999-07-19 Erik de Castro Lopo * src/alaw.c New file for A-law encoding (similar to u-law). * tests/alaw_test.c New test program to test the A-law encode/decode lookup tables. * tests/lossy_comp_test.c Added tests for a-law encoded WAV, AU and AULE files. 1999-07-18 Erik de Castro Lopo * src/sndfile.c src/au.c Removed second "#include ". Thanks to Ben "Jacobs" for pointing this out. 1999-07-18 Erik de Castro Lopo * tests/ulaw_test.c New test program to test the u-law encode/decode lookup tables. 1999-07-16 Erik de Castro Lopo * src/sndfile.h Made corrections to comments on the return values from sf_seek (). * src/sndfile.c Fixed boundary condition checking bug and accounting bug in sf_read_raw (). 1999-07-15 Erik de Castro Lopo * src/au.c src/ulaw.c Finished implementation of u-law encoded AU files. * src/wav.c Implemented reading and writing of u-law encoded WAV files. * tests/ Changed name of adpcm_test.c to lossy_comp_test.c. This test program will now be used to test Ulaw and Alaw encoding as well as APDCM. Added tests for Ulaw encoded WAV files. 1999-07-14 Erik de Castro Lopo * tests/adpcm_test.c Initialised amp variable in gen_signal() to remove compiler warning. 1999-07-12 Erik de Castro Lopo * src/aiff.c In __aiff_open_read () prevented fseek()ing beyond end of file which was causing trouble on MacOS with the MetroWerks compiler. Thanks to Ben "Jacobs" for pointing this out. *src/wav.c Fixed as above in __wav_open_read (). 1999-07-01 Erik de Castro Lopo * src/wav_ms_adpcm.c Implemented MS ADPCM encoding. Code cleanup of decoder. * tests/adpcm_test.c Added tests for MS ADPCM WAV files. * src/wav_ima_adpcm.c Fixed incorrect parameter in call to srate2blocksize () from __ima_writer_init (). 1999-06-23 Erik de Castro Lopo * tests/read_seek_test.c Added test for 8 bit AIFF files. 1999-06-18 Erik de Castro Lopo * tests/write_read_test.c Removed test for IMA ADPCM WAV files which is now done in adpcm_test.c * configure.in Added -Wconversion to CFLAGS. * src/*.c tests/*.c examples/*.c Fixed all warnings resulting from use of -Wconversion. 1999-06-17 Erik de Castro Lopo * src/wav.c Added fact chunk handling on read and write for all non WAVE_FORMAT_PCM WAV files. * src/wav_ima.c Changed block alignment to be dependant on sample rate. This should make WAV files created with libsndfile compatible with the MS Windows media players. * tests/adpcm_test.c Reimplemented adpcm_test_short and implemented adpcm_test_int and adpcm_test_double. Now have full testing of IMA ADPCM WAV file read, write and seek. 1999-06-15 Erik de Castro Lopo * src/wav_float.c Fixed function prototype for x86f2d_array () which was causing ocassional seg. faults on Sparc Solaris machines. 1999-06-14 Erik de Castro Lopo * src/aiff.c Fixed bug in __aiff_close where the length fields in the header were not being correctly calculated before writing. * tests/write_read_test.c Modified to detect the above bug in WAV, AIFF and AU files. 1999-06-12 Erik de Castro Lopo * Win32/* Added a contribution from Albert Faber to allow libsndfile to compile under Win32 systems. libsndfile will now be used as part of LAME the the MPEG 1 Layer 3 encoder (http://internet.roadrunner.com/~mt/mp3/). 1999-06-11 Erik de Castro Lopo * configure.in Changed to reflect previous changes. * src/wav_ima_adpcm.c Fixed incorrect calculation of bytespersec header field (IMA ADPCM only). Fixed bug when writing from int or double data to IMA ADPCM file. Will need to write test code for this. Fixed bug in __ima_write () whereby the length of the current block was calculated incorrectly. Thanks to Jongcheon Park for pointing this out. 1999-03-27 Erik de Castro Lopo * src/*.c Changed all read/write/lseek function calls to fread/fwrite/ fseek/ftell and added error checking of return values from fread and fwrite in critical areas of the code. * src/au.c Fixed incorrect datasize element in AU header on write. * tests/error_test.c Add new test to check all error values have an associated error string. This will avoid embarrassing real world core dumps. 1999-03-23 Erik de Castro Lopo * src/wav.c src/aiff.c Added handling for unknown chunk markers in the file. 1999-03-22 Erik de Castro Lopo * src/sndfile.c Filled in missing error strings in SndfileErrors array. Missing entries can cause core dumps when calling sf_error-str (). Thanks to Sam for finding this problem. 1999-03-21 Erik de Castro Lopo * src/wav_ima_adpcm.c Work on wav_ms_adpcm.c uncovered a bug in __ima_read () when reading stereo files. Caused by not adjusting offset into buffer of decoded samples for 2 channels. A similar bug existed in __ima_write (). Need a test for stereo ADPCM files. * src/wav_ms_adpcm.c Decoder working correctly. 1999-03-18 Erik de Castro Lopo * configure.in Makefile.am Added --enable-justsrc configuration variable sent by Sam . * src/wav_ima_adpcm.c Fixed bug when reading beyond end of data section due to not checking pima->blockcount. This uncovered __ima_seek () bug due to pima->blockcount being set before calling __ima_init_block (). 1999-03-17 Erik de Castro Lopo * src/wav.c Started implementing MS ADPCM decoder. If file is WAVE_FORMAT_ADPCM and length of data chunk is odd, this encoder seems to add an extra byte. Why not just give an even data length? 1999-03-16 Erik de Castro Lopo * src/wav.c Split code out of wav.c to create wav_float.c and wav_ima_adpcm.c. This will make it easier to add and debug other kinds of WAV files in future. 1999-03-14 Erik de Castro Lopo * tests/ Added adpcm_test.c which implements test functions for IMA ADPCM reading/writing/seeking etc. * src/wav.c Fixed many bugs in IMA ADPCM encoder and decoder. 1999-03-11 Erik de Castro Lopo * src/wav.c Finished implementing IMA ADPCM encoder and decoder (what a bitch!). 1999-03-03 Erik de Castro Lopo * src/wav.c Started implementing IMA ADPCM decoder. 1999-03-02 Erik de Castro Lopo * src/sndfile.c Fixed bug where the sf_read_XXX functions were returning a incorrect read count when reading past end of file. Fixed bug in sf_seek () when seeking backwards from end of file. * tests/read_seek_test.c Added multiple read test to short_test(), int_test () and double_test (). Added extra chunk to all test WAV files to test that reading stops at end of 'data' chunk. 1999-02-21 Erik de Castro Lopo * tests/write_read_test.c Added tests for little DEC endian AU files. * src/au.c Add handling for DEC format little endian AU files. 1999-02-20 Erik de Castro Lopo * src/aiff.c src/au.c src/wav.c Add __psf_sprintf calls during header parsing. * src/sndfile.c src/common.c Implement sf_header_info (sndfile.c) function and __psf_sprintf (common.c). * tests/write_read_test.c Added tests for 8 bit PCM files (WAV, AIFF and AU). * src/au.c src/aiff.c Add handling of 8 bit PCM data format. * src/aiff.c On write, set blocksize in SSND chunk to zero like everybody else. 1999-02-16 Erik de Castro Lopo * src/pcm.c: Fixed bug in let2s_array (cptr was not being initialised). * src/sndfile.c: Fixed bug in sf_read_raw and sf_write_raw. sf_seek should now work when using these functions. 1999-02-15 Erik de Castro Lopo * tests/write_read_test.c: Force test_buffer array to be double aligned. Sparc Solaris requires this. 1999-02-14 Erik de Castro Lopo * src/pcm.c: Fixed a bug which was causing errors in the reading and writing of 24 bit PCM files. * doc/api.html Finished of preliminary documentaion. 1999-02-13 Erik de Castro Lopo * src/aiff.c: Changed reading of 'COMM' chunk to avoid reading an int which overlaps an int (4 byte) boundary.