Erik de Castro Lopo
7438eb7107
src/flac.c : Fix seeking to offset 0 from end of file.
...
For FLAC files, (unlike WAV and others), seeking to the end of the
file using:
file_length = sf_seek (file, 0, SEEK_END) ;
was failing because the underlying libFLAC was considering this as
an error condition. Work around this by detecting this in libsndfile
and doing the right thing.
Closes : https://github.com/erikd/libsndfile/issues/34
2013-06-23 10:59:00 +10:00
Erik de Castro Lopo
ac8a101960
sndfile-convert.c : Add ability to specify endian-ness.
...
At the request of Jim Gray, allow endian-ness of output file to be
specified on the command line as:
-endian=(little|big|cpu)
This is done before the call to sf_format_check() and may still
result in an error if the destination format does not support
the specified endian-ness.
2013-06-23 10:24:53 +10:00
Erik de Castro Lopo
90b38b36b8
Disable stack protector by default.
...
This option is disabled by default because it is known not to work
on FreeBSD 9.1 and for Linux -> Windows cross compiling using the
Debian MinGW-w64 tool chain.
Closes: https://github.com/erikd/libsndfile/issues/42
2013-06-22 19:36:32 +10:00
Erik de Castro Lopo
05d7f6a6d2
Purge un-needed M4/extra_largefile.m4.
...
Closes: https://github.com/erikd/libsndfile/issues/41
2013-05-05 05:10:24 +10:00
Erik de Castro Lopo
f62d96ee0e
doc/index.html : Remove Android from supported systems.
2013-04-30 20:18:15 +10:00
Erik de Castro Lopo
d0c9fae4f9
configure.ac : Sanity check --disable-largefile.
...
If sizeof (off_t) == 8, then disable large file support doesn't work.
2013-04-30 09:41:35 +10:00
Karl Lindén
9b331554ab
Use pkgconfigdir variable as it is not sure it will be libdir/pkgconfig.
...
Let an external script handle printing of installation directories so
that printing can be done in a `cleaner' way without tests.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-04-28 21:35:08 +10:00
Karl Lindén
958263fbd7
Do not use old variable INCLUDES and use modern AM_INIT_AUTOMAKE invocation.
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-04-07 20:05:08 +10:00
Erik de Castro Lopo
0d6a1b0725
Make sure checkprograms are built as part of 'make test-tarball'.
2013-04-05 19:21:18 +11:00
Karl Lindén
315c92457b
Honour --htmldir option to configure script.
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-04-05 07:32:24 +11:00
Erik de Castro Lopo
4953e9e8bb
configure.ac : Detect and enable stack protection.
2013-04-04 21:14:06 +11:00
Erik de Castro Lopo
ea31ce4588
tests/dft_cmp.c : Fix buffer overflow detected using gcc-4.8.
...
This was a buffer overflow in libsndfile's test suite code, not
in the actual library code.
2013-03-28 18:11:14 +11:00
Erik de Castro Lopo
7c893e482f
M4/gcc_version.m4 : Fix to work with OpenBSD's sed.
2013-03-09 20:34:20 +11:00
Erik de Castro Lopo
e11a0c1881
ALAC/alac_encoder.c : Add correct byte swapping for mChannelLayoutTag.
...
Patch from Michael Pruett, author of libaudiofile.
2013-03-07 08:00:57 +11:00
Erik de Castro Lopo
ebda7e54ac
doc/bugs.html : Link to the github issue tracker.
2013-03-02 10:06:43 +11:00
Erik de Castro Lopo
03afc5cc40
src/command.c : Fix FLAC name string.
2013-02-25 20:21:55 +11:00
Erik de Castro Lopo
f4698f5998
configure.ac : Fix sanitization of FLAC_CFLAGS value.
2013-02-22 17:34:31 +11:00
Erik de Castro Lopo
275a13db6d
configure.ac : Improve sanitization of FLAC_CFLAGS value.
2013-02-22 06:29:40 +11:00
Erik de Castro Lopo
f6b5397255
Purge old/incorrect doc/pkgconfig.html.
2013-02-22 06:22:49 +11:00
Erik de Castro Lopo
1bcfcd31b9
doc/ : Make internal links relative. Patch from Jan Stary.
2013-02-21 20:49:31 +11:00
Erik de Castro Lopo
7a7a1872a5
Call python interpreter instead of using '#!' in script.
...
This fixes builds on platforms where python is in /usr/local/bin.
Thanks to Jan Stary for reporting this.
2013-02-21 18:26:26 +11:00
Erik de Castro Lopo
4a7495cd50
ALAC/ : Remove redundant FIXME comment.
2013-02-15 06:44:54 +11:00
Erik de Castro Lopo
d18443e986
ChangeLog : Update entry.
2013-02-14 07:16:05 +11:00
Erik de Castro Lopo
34f1fe1c12
ALAC/ : Replace all un-aligned accesses with safe alternatives.
2013-02-13 20:54:43 +11:00
Erik de Castro Lopo
3c812eb4b3
Add functions psf_get_be(16|32|64) with tests.
...
These are needed for platforms where un-aligned accesses cause bus
faults.
2013-02-13 20:51:37 +11:00
Erik de Castro Lopo
6ced621a66
src/ : Add tests for psf_put_be32() and psf_put_be64().
2013-02-13 18:21:55 +11:00
Erik de Castro Lopo
c3c39ed677
src/test_cart_var.c : Minor fixes.
2013-02-12 17:44:27 +11:00
Erik de Castro Lopo
de6d004727
src/sfendian.h : Add big endian versions of H2BE_16 and H2BE_32.
2013-02-12 17:26:44 +11:00
Erik de Castro Lopo
c4fbacbe86
src/sndfile.h.in : uint32_t instead of int32_t.
2013-02-11 20:37:19 +11:00
Erik de Castro Lopo
6890818772
Merge d7a161d9..2ffaf92c from libsndfile-cart.
2013-02-11 20:30:15 +11:00
Erik de Castro Lopo
2ffaf92cb6
Fix memory leak. SF_CART_INFO_16K struct was not being de-allocated.
2013-02-11 19:57:49 +11:00
Erik de Castro Lopo
95714e91b3
tests/test_wrapper.sh.in : Add cart tests to command_test.
2013-02-11 19:57:49 +11:00
Erik de Castro Lopo
dcc3c85c84
programs/sndfile-info.c : Add ability to dump the cart chunk.
2013-02-11 19:57:49 +11:00
Erik de Castro Lopo
e866561923
src/(cart|wav).c : Minor cleanups.
2013-02-11 19:57:49 +11:00
Erik de Castro Lopo
1640ab2eef
tests/command_test.c : Use cart_test on RF64 files as well.
2013-02-11 19:57:49 +11:00
Erik de Castro Lopo
1fa256cd7a
sndfile.h.in : Replace type 'long' with type 'int32_t' in SF_CART_INFO.
...
Type 'long' can be either 32 or 64 bits so replace it with a type with
a guaranteed size.
2013-02-11 19:57:49 +11:00
Erik de Castro Lopo
e85ff2b635
src/sndfile.h.in : Fix up SF_CART_TIMER definition.
2013-02-11 19:57:49 +11:00
Erik de Castro Lopo
0738e57553
src/wav.c : Fix handling or 'PAD ' chunk.
...
Handling of this chunk was broken in commit c3155728.
2013-02-11 19:57:49 +11:00
Erik de Castro Lopo
71d4533a79
doc/command.html : Couple of minor fixes.
2013-02-11 19:57:49 +11:00
Chris Roberts
d7a161d943
Implemented CartChunk support for WAV files
...
Implement Cart Chunk support, in line with AES46. The appropriate
standards document is available here:
http://www.aes.org/publications/standards/search.cfm?docID=41
Write tests to check consistency, check against reference application for
compatibility.
Only fully implemented with RIFF WAV format, though it might be applicable to
other formats.
2013-02-11 19:55:44 +11:00
Erik de Castro Lopo
b9e801d580
src/ALAC/ : Replace Apple endswap routines with ones from libsndfile.
2013-02-11 17:54:57 +11:00
Erik de Castro Lopo
88b1e0fad8
src/sndfile.h.in : Use uint32_t instead of 'unsigned int'.
...
Also include <stdint.h> to provide the required types.
2013-02-10 20:15:56 +11:00
Erik de Castro Lopo
a86e5d89f2
configure.ac : Version 1.0.26pre5.
2013-02-10 14:09:32 +11:00
Erik de Castro Lopo
74aa688e01
src/common.h : Bump SF_HEADER_LEN from 8192 to 12292.
2013-02-10 13:03:59 +11:00
Erik de Castro Lopo
e880f88bee
src/ALAC/ : Add comments about possible cast-align problems on armhf.
2013-02-09 12:55:28 +11:00
Erik de Castro Lopo
3fe80ddad1
src/alac.c : Fix segfault when encoding 8 channel files.
2013-02-09 11:15:37 +11:00
Erik de Castro Lopo
72b1c13feb
Purge un-needed file src/ALAC/alac_encoder.h.
2013-02-09 10:38:25 +11:00
Erik de Castro Lopo
13106fab14
ALAC : Fall back to compiler's __BYTE_ORDER__ for endian-ness detection.
2013-02-08 19:56:16 +11:00
Erik de Castro Lopo
1ad2dec20c
examples/sfprocess.c : Add missing #include.
2013-02-08 06:44:26 +11:00
Ulrich Klauer
23c926d633
Properly initialize SF_INFO in example programs
...
Some of the example programs (examples/generate.c,
examples/sfprocess.c, examples/sndfile-to-text.c) didn't initialize
the SF_INFO structure to zero before using it, leading to undefined
behaviour. Add a memset() to fix this.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-02-07 18:13:53 +11:00