Commit Graph

36 Commits

Author SHA1 Message Date
evpobr
be637260f7 xi: Remove extra blank lines 2021-03-24 08:17:54 +05:00
evpobr
4ff3b84eff msvc: Fix annoying conversion warnings #304 2021-03-06 11:41:47 +05:00
evpobr
e7f5137b47 Implement fast SSE2 lrint and lrintf, closes #660
lrint() and lrintf() are ridiculously slow when libsndfile is built
using Visual C++.

On x86 and AMD64 platforms this patch adds SSE2 optimized versions.

It is safe to assume that non-SSE2 processors are no longer available to
avoid unnecessary checks.
2020-12-08 10:42:26 +05:00
Erik de Castro Lopo
7bc10c8630 src/*.c: New format specifiers for psf_binheader_writef
There was a long standing problem where the compiler was not able to
check format speficiers for `psf_binheader_writef`. This is a standard
problem with using non-standard format specifiers with stdargs.

This solution wraps all non-format parameters pass to that functions
with a macro which performs an explicit type cast. The second step is
to have a Python program make sure these macro wrappers match the
format specifiers.

Closes: https://github.com/erikd/libsndfile/issues/241
2017-07-18 06:07:05 +10:00
Erik de Castro Lopo
681831a404 src/ : Follow changes to header buffer
Closes: https://github.com/erikd/libsndfile/issues/191
2016-11-27 16:36:44 +11:00
Erik de Castro Lopo
c1355f0c19 src/: Use PACKAGE_NAME and PACKAGE_VERSION macros
Instead of the older `PACKAGE` and `VERSION` macros.
2016-02-08 13:32:34 +11:00
Erik de Castro Lopo
149f42892b src/ : Fix undefined behaviour warnings. 2014-12-16 13:19:59 +11:00
Erik de Castro Lopo
6df829d48f src/xi.c : Set basenote and loop info in instrument structure.
Previously this was only logged but not exposed. Now applications can
query the information.

Based on a patch from Stefan Sauer <ensonic@users.sf.net>.

Closes: https://github.com/erikd/libsndfile/pull/54
2013-12-31 06:08:33 +11:00
Erik de Castro Lopo
13e58306ca src/xi.c : Expose string info for application and title.
Based on a patch from Stefan Sauer <ensonic@users.sf.net>.

Closes: https://github.com/erikd/libsndfile/pull/53
2013-12-22 11:48:06 +11:00
Erik de Castro Lopo
c0acabf885 Rename endian swapping macros and add ENDSWAP_64 and BE2H_64. 2012-03-05 18:19:58 +11:00
Erik de Castro Lopo
b5c45de7bc Remove the buffer union from SF_PRIVATE. 2012-02-01 17:47:11 +11:00
Erik de Castro Lopo
f209698448 Update copyright dates. 2011-01-19 21:36:56 +11:00
Erik de Castro Lopo
fe1ca56ecd src/* : Split file stuff into PSF_FILE struct within the SF_PRIVATE struct. 2009-09-25 21:32:15 +10:00
Erik de Castro Lopo
cea25d4c24 src/xi.c : Handle error return values from psf_ftell. 2009-02-22 17:11:05 +11:00
Erik de Castro Lopo
033cc5ca35 Use C99 snprintf everywhere. 2009-02-14 08:32:12 +11:00
Erik de Castro Lopo
a38e0b105e Update copyright notices. 2009-02-07 15:20:17 +11:00
Erik de Castro Lopo
cb9f4b40ab src/*.c : Use new macros everywhere it is appropriate. 2008-09-04 09:39:20 +10:00
Erik de Castro Lopo
2e97a51cdd Clean out cruft. 2008-04-05 20:13:47 +11:00
Erik de Castro Lopo
92ee01870a More use of UNUSED macro. 2006-10-22 13:31:27 +00:00
Erik de Castro Lopo
11c5b4125b Use UNUSED macro to prevent compiler warnings. 2006-10-22 13:03:19 +00:00
Erik de Castro Lopo
d32f698602 Remove fdate field from SF_PRIVATE struct and replace it with codec_data. 2006-05-22 05:12:36 +00:00
Erik de Castro Lopo
270c150db7 Fix problem where int/size_t were being passed to a varargs function. 2006-03-04 02:15:05 +00:00
Erik de Castro Lopo
2c0d105419 xi.c : Start work on add read/write of instrument chunks. 2006-01-19 09:04:23 +00:00
Erik de Castro Lopo
7b12c9d636 Merge codec_close/container_close mods from --codec-close branch.
Patches applied:

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

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

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

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

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

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

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

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

 * erikd@miles--2004/libsndfile--codec-close--0--patch-8
   lossy_comp_test.c : Reinstate check_comment() code form SF_FORMAT_(IMA|MS)_ADPCM.
2005-10-26 21:26:13 +00:00
Erik de Castro Lopo
f3ea80efe5 Fix autoconf config issues using new file sfconfig.h. 2005-09-03 06:12:30 +00:00
Erik de Castro Lopo
06514d012e Update copyright notices. 2005-01-26 22:46:37 +00:00
Erik de Castro Lopo
6cfafbf99c Rename SF_SEEK_ERROR to PSF_SEEK_ERROR. 2005-01-25 22:06:27 +00:00
Erik de Castro Lopo
a97fb9fce2 Const-ify the write path throughout. 2004-12-23 10:49:57 +00:00
Erik de Castro Lopo
2e9e61e19d Change an unnamed union to a named one and fix resulting problems. 2004-08-29 23:39:24 +00:00
Erik de Castro Lopo
1f11db8200 Optimise read/write loops by removing a redundant variable. 2004-07-30 06:04:21 +00:00
Erik de Castro Lopo
9fec6173f4 Change psf->buffer to a more type safe union.
Patches applied:

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

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

 * erikd@miles--2004/libsndfile--stable--0--patch-2
   Change psf->buffer to a more type safe union.
2004-07-02 13:20:15 +00:00
Erik de Castro Lopo
5a1ba58762 Add cast to size_t for some parameters passed to psf_binheader_writef. 2004-06-14 21:23:12 +00:00
Erik de Castro Lopo
b27fdfb4d4 Add 2004 copyright dates. 2004-03-01 08:51:25 +00:00
Erik de Castro Lopo
26efcb703f More zip.com.au to mega-nerd.com changes. 2004-02-13 12:31:34 +00:00
Erik de Castro Lopo
a1e9265cad initial import
(automatically generated log message)
2004-01-21 07:46:34 +00:00
Erik de Castro Lopo
cb979e10a7 First snapshot of the public project. 2007-05-14 19:55:24 +10:00