📄 changelog
字号:
This code still needs testing but is likely to be a huge improvemnt of support for Win32. Thanks Ross.2003-10-27 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * src/dwvw.c Removed filedes field from the DWVW_PRIVATE struct. * src/file_io.c Change psf_fopen() so it returns psf->error instead of the file descriptor. Add new functions psf_set_stdio() and psf_set_file(). * src/sndfile.c Change these to work with changed psf_fopen() return value. Remove all uses of psf->filedes from sndfile, making it easier to slot native Win32 API file handling functions. * src/test_file_io.c Minor changes to make it compile with new file_io.c stuff.2003-10-26 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * src/gsm610.h Rename a variable from true to true_flag. As Ross Bencina points out, true is defined in the C99 header <stdbool.h>. * src/file_io.c If fstat() fails, return SF_TRUE instead of -1 (Ross Bencina).2003-10-09 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * src/common.h Increase the size of SF_BUFFER_LEN and SF_HEADER_LEN. * src/sndfile.c Fix sf_read/write_raw which were dividing by psf->bytwidth and psf->blockwidth which can both be zero. * examples/sndfile-info.c Increase size of BUFFER_LEN.2003-09-21 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * configure.ac Add checks for <sys/wait.h> and ssize_t. Other Win32/MinGW checks. * src/aiff.c src/au_g72x.c src/file_io.c src/gsm610.c src/interleave.c src/paf.c src/sds.c src/svx.c src/voc.c src/w64.c src/wav.c src/xi.c Fix compiler warnings.2003-09-20 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * tests/scale_clip_test.tpl Add definition of M_PI if needed.2003-09-19 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * configure.ac Detect if S_IRGRP is declared in <unistd.h>. * src/file_io.c tests/*.tpl tests/*.c More fixes for Win32/MSVC++ and MinGW. MinGW does have <unistd.h> but that file doesn't declare S_IRGRP.2003-10-18 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * src/config.h.in Add comment stating that the sf_count_t typedef is determined when libsndfile is being compiled. * tests/utils.tpl Modified so that utils.c gets one copy of the GPL and not two.2003-09-17 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * Win32/unistd.h src/sf_unistd.h Move first file to the second. This will help for Win32/MSVC++ and MinGW. * Win32/Makefile.am src/Makefile.am Changed in line with above. * Win32/Makefile.msvc Removed "/I Win32" which is no longer required. * src/file_io.c src/test_file_io.c tests/*.tpl tests/*.c If HAVE_UNISTD_H include <unistd.h> else include <sf_unistd.h>. This should work for Win32, MinGW and other fakes Unix-like OSes. * src/*.c Removed #include <unistd.h> from files which didn't need it.2003-09-16 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * libsndfile.spec.in Apply fix from Andrew Schultz.2003-09-07 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * src/vox_adpcm.c Only set psf->sf.samplerate if the existing value is invalid.2003-09-06 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * examples/sndfile-play.c Started adding support for ALSA output.2003-09-04 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * src/sndfile.h.in Removed <stdlib.h> from sndfile.h. * src/*.c examples/*.c tests/*.c tests/*.tpl Added <stdlib.h> where needed.2003-09-02 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * src/common.h Added ARRAY_LEN, SF_MAX and SF_MIN macros.2003-08-19 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * doc/index.html Remove statements about alternative licensing arrangements.2003-08-17 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * MacOS MacOS9 Makefile.am configure.ac Change directory name from MacOS to MacOS9 * MacOS9/MacOS9-readme.txt Change name to make it really obvious, add text to top of file to make it still more obvious again.2003-08-16 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * src/test_log_printf.c Add tests for %u conversions. * src/common.c Fix psf_log_printf() %u conversions.2003-08-15 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * src/aiff.c Fixed a bug where opening a file with a non-trival header in SFM_RDWR mode would over-write part of the header. Thanks to Axel Roebel for pointing this out. Axel also provided a patch to fix this but I came up with a neater and more general solution. Return error when openning an AIFF file with data after the SSND chunk (Thanks Axel Roebel). * tests/aiff_rw_test.c Improvements to test program which will later allow it to be generalised to test WAV, SVX and others as required.2003-08-14 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * tests/pipe_test.c Add useek_pipe_rw_test() submitted by Russell Francis. * src/sndfile.c In sf_open_fd(), check if input file descriptor is a pipe. * src/sndfile.[ch] Fix typo in variable name do_not_close_descriptor.2003-08-13 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * src/test_log_printf.c Improve the tests for %d and %s conversions. * src/common.c Fixed a few problems in psf_log_printf() found using new tests.2003-08-06 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * configure.ac Add -Wwrite-strings warning to CFLAGS if the compiler is GCC. Thanks to Peter Miller (Aegis author) for suggesting this and supplying a patch. * src/*.c examples/*.c tests/*.c Fix all compiler warnings arising from the above.2003-08-02 * tests/aiff_rw_test.c tests/Makefile.am New test program to check for errors re-writing the headers of AIFC files opened in mode SFM_RDWR.2003-07-21 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * examples/sndfile-play.c Applied a patch from Tero Pelander to allow this program to run on systems using devfs which used /dev/sound/dsp instead of /dev/dsp.2003-07-11 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * doc/new_file_type.HOWTO Updated document. Still incomplete.2003-06-29 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * src/sndfile.c Fix VALIDATE_SNDFILE_AND_ASSIGN_PSF which was returning an error rather than saving it and returning zero.2003-06-25 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * src/file_io.c Two fixes for Mac OS9. Fix all casts from sf_count_t to ssize_t (not size_t).2003-06-22 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * src/wav.c Fix for reading files with RIFF length of 8 and data length of 0.2003-06-14 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * src/*.c tests/*.c tests/*.tpl Added comments to mark code for removal when make Lite version of libsndfile.2003-06-09 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * examples/sndfile-convert.c Add extra error checking for unrecognised arguments.2003-06-08 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * src/ima_adpcm.c Started adding code to write IMA ADPCM encoded AIFF files. * src/test_log_printf.c src/Makefile.am New file to test psf_log_printf() function and add hooks into build system. * src/common.c Move psf_log_printf() function to top of the file and only compile the rest of the file if if PSF_LOG_PRINTF_ONLY is not defined.2003-06-03 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * Win32/config.h Win32/sndfile.h Updated with new config variables. * Win32/unistd.h src/file_io.c Added implementation of S_ISFIFO macro which Win32 seems to lack and is used in src/file_io.c. * tests/utils.tpl Added #include <unitstd.h> to pull in Win32/unistd.h so it compiles for Win32. * src/Makefile.msvc Added src\test_file_io.exe build target and run this as the very first test. * tests/win32_test.c Add support for testing Cygwin32. * configure.ac Detect POSIX fsync() and fdatasync() functions. * src/file_io.c If compiling for Cygwin, call fsync() before calling fstat() to retrieve file length. * tests/pcm_test.tpl Add a test for lrintf() function. This was required to detect a really broken lrint() and lrintf() on Cygwin. * tests/misc_test.c Don't run permission test when compiling under Cygwin. * src/float_cast.h Fix fallback macro for lrint() and lrintf() to cast to long instead of int to match official function prototypes.2003-06-02 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * examples/sndfile-convert.c Modifications to improve accuracy of conversions; use double data for floating point and int for everything else. * src/ima_apdcm.c Completed work on decoding IMA ADPCM encoded AIFF files. Still need to get encoding working.2003-05-28 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * src/aiff.c src/ima_adpcm.c Start working on getting IMA ADPCM encoded AIFF files working.2003-05-27 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * configure.ac Fixed the touch command for when the autogen program is not found (Matt Flax). * src/ulaw.c src/alaw.c Made these pipe-able.2003-05-24 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * src/paf.c src/ircam.c Fixed writing to pipe. * src/wav.c src/aiff.c src/nist.c src/mat*.c src/svx.c src/w64.c Return SFE_NO_PIPE_WRITE if an attempt is made to write to a pipe.2003-05-23 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * examples/sndfile-info.c Modified to detect unknown file lengths. * src/mat4.c Fix reading from a pipe.2003-05-22 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * tests/pipe_test.c Add more file types to tests. * src/mat4.c Removed explicit setting of psf->sf.seekable to SF_TRUE. * tests/utils.tpl Add macro for generating and check data in the stdio and pipe tests. * tests/stdout_test.c tests/stdin_test.c Use the above macro to generate known data on output and check data on input. * src/voc.c src/htk.c common.h sndfile.c Disallow reading/writing VOC and HTK files from/to pipes be returning new error values. * src/w64.c Fixes to allow reading from a pipe.2003-05-21 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * configure.ac src/sndfile.h.in When the configure script determines the sizeof (sf_count_t), also set the value of SF_COUNT_MAX in sndfile.h. * configure.ac Remove -pedantic flag from default GCC compiler flags. * tests/pipe_test.c Add a pipe_read_test() before doing pipe_write_test(). * tests/scale_clip_test.c Add test to make sure non-normalized values also clip in the right way.2003-05-18 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * configure.ac Add test to detect processor clipping capabilities. * tests/stdin_test.c tests/stdout_test.c Fix a pair of compiler warnings. * src/common.h Add new pipeoffset field to SF_PRIVATE. This will contain the current file offset when operating on a pipe. * src/common.c Removed direct calls to psf_fread()/psf_fseek()/psf_fgets() etc from psf_binheader_readf and redirect them to new buffered versions header_read(), header_seek() and header_gets(). Add "G" format specifier to emulate fgets() functionality with buffering. This will allow reading some file types from pipes. * src/file_io.c When the file descriptor is a pipe, manintain psf->pipeoffset. * src/pvf.c Change use of psf_fgets() to psf_binheader_readf() as required but changes to header re * src/au.c Fix reading from a pipe.2003-05-17 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * src/pcm.c Add clipping versions of the f2XXX_array() functions to allow option of clipping data that would otherwise overflow. * tests/scale_clip_test.tpl tests/scale_clip_test.def New files test that clipping option does actually work.2003-05-14 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * doc/index.html Fixed a typo ("OS(" instead of "OS9").2003-05-13 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * tests/open_fail_test.c Include <string.h> to prevent warning message of missing declaration of memset().2003-05-12 Erik de Castro Lopo <erikd AT mega-nerd DOT com> * src/common.h Add new "add_clipping" field to SF_PRIVATE. * src/sndfile.h.in src/sndfile.c Add command SFC_SET_CLIPPING which sets/resets add_clipping field.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -