Erik de Castro Lopo
0546fa2503
libsndfile.cmake: Set __USE_MINGW_ANSI_STDIO as needed
2016-07-07 19:53:00 +10:00
Erik de Castro Lopo
33f04ef71c
Scripts/git-pre-commit-hook: Support GNU and BSD sed
2016-07-07 19:35:11 +10:00
Erik de Castro Lopo
818824d340
Delete Scripts/static-deps-build.mk
...
This never worked as intended and probably can't be fixed.
2016-07-03 19:35:04 +10:00
Erik de Castro Lopo
05288ca11e
Revert "Drop use of __USE_MINGW_ANSI_STDIO"
...
This reverts commit ac0c02de3c
.
This define is needed when cross compiling from Linux to Windows.
2016-07-03 19:02:03 +10:00
Erik de Castro Lopo
7b6d2f85b0
CMake: More fixes
2016-07-03 14:14:17 +10:00
Erik de Castro Lopo
7774043243
ALAC: Fix warnings from AppleClang
2016-07-03 11:34:29 +10:00
Erik de Castro Lopo
ac0c02de3c
Drop use of __USE_MINGW_ANSI_STDIO
2016-07-03 11:05:08 +10:00
Erik de Castro Lopo
50a4098e9f
sndfile-play: Remove support for Darwin <= 11
...
Darwin 12 (Mountain Lion) was released in February 2012. Apple no
longer support 11 and neither does libsndfile.
2016-07-03 10:33:31 +10:00
Erik de Castro Lopo
ec7d3cfab8
README.md: Typo
2016-07-03 08:23:06 +10:00
Erik de Castro Lopo
cb47664a80
CMake/file.cmake: Handle leading space from wc output
2016-07-03 08:21:22 +10:00
Erik de Castro Lopo
6776ceafa8
CMake: Detect and link external libs (FLAC/vorbis/ogg)
...
Works on Linux, not tested elsewhere.
2016-07-02 21:16:40 +10:00
Erik de Castro Lopo
5f639642bf
README.md: Minimal documentation for the CMake build system
2016-07-02 17:25:15 +10:00
Erik de Castro Lopo
f59bab6215
Makefile.am: Add CMake files to EXTRA_DIST
2016-07-02 17:25:15 +10:00
Erik de Castro Lopo
9c6e45a103
Comprehensive CMake improvements
...
It should now be possible to build libsndfile from a git checkout, at
least on Linux. No idea if it will work on other systems.
Additionally, if one builds on linux from a git checkout and then builds
a distribution tarball, it should be possible to transfer that distribution
tarball to a system without the GNU autotools and build it using CMake. This
however has not been tested.
2016-07-02 17:15:47 +10:00
Erik de Castro Lopo
145e2b8f4a
src/alac.c: Fix VLA size in alac_close()
...
The type of `kuki_data` was `uint8_t *` instead of `uint8_t`. For
some reason the C type checker was not able to pick this up.
Closes: https://github.com/erikd/libsndfile/issues/135
2016-06-25 08:48:32 +10:00
Erik de Castro Lopo
5afbcc6cf4
configure.ac: 1.0.28pre1
2016-06-19 21:39:20 +10:00
Erik de Castro Lopo
d3d545abf9
Version 1.0.27
2016-06-19 18:08:54 +10:00
Erik de Castro Lopo
951718c4cd
src/paf.c: Fix alignment issues compiling for Arm
...
Fix an issue introduced in commit a1f41d90bf
.
Earlier versions of Arm (before armv7) did not handle un-aligned
accesses so that GCC warns about casts that increase alignment
requirements (like casts from `char*` to `int*`). Fix this by changing
the pointer from `char*` to `int*` and casting back to `char*` as needed
instead of doing the reverse.
2016-05-23 20:41:23 +10:00
Erik de Castro Lopo
a1f41d90bf
src/paf.c: Fix a long standing endian issue
...
There has been a long standing issue where something was not quite
right with the endian-ness handle of PAF files. This was difficlt to
track down because of the difficulty in getting access to a Paris Audio
system. Fortunately, Jeremy Friesner <jfriesne@gmail.com> was able to
provide some test files and a preliminary patch.
2016-05-22 19:57:09 +10:00
RiCON
5cc981dfc4
sndfile.pc.in: missing update from 95828ca2
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2016-04-30 07:29:07 +10:00
Erik de Castro Lopo
afcf447499
src/wavlike.c: Prevent infinite loop on malformed file
...
Found using American Fuzzy Lop.
2016-04-24 08:02:11 +10:00
Erik de Castro Lopo
7b7e0d913b
SF_CUES: Fix for big-endian CPUs
2016-04-15 22:27:08 +10:00
Erik de Castro Lopo
1f1b9de462
SF_CUES: Work around Clang mis-feature
...
For some reason Clang refuses to calculate `sizeof (SF_CUES_VAR (1))`
so we have to manually bodgy our way around this.
2016-04-15 21:26:10 +10:00
Erik de Castro Lopo
9ea30b4c19
Add SFC_GET_CUE_COUNT command
...
This allows retrieval of the cue marker count before retrieval.
2016-04-15 21:11:40 +10:00
Erik de Castro Lopo
bcc875d930
Allow variable length cues
...
Done in a similar manner to the way variable length Broadcast Extension
(bext) is done.
2016-04-15 20:24:49 +10:00
Erik de Castro Lopo
eeee23ca54
src/common.c: Simplify psf_cues_alloc()
2016-04-11 19:55:10 +10:00
Erik de Castro Lopo
8d1466c4df
Use uint32_t for cue_count field of SF_CUES
2016-04-11 19:55:10 +10:00
Erik de Castro Lopo
c3e7ec065b
src/aiff.c: Formatting and refactoring
2016-04-11 19:55:10 +10:00
Erik de Castro Lopo
a990ed6c2d
src/aiff.c: Use MAKE_MARKER
instead of magic number
2016-04-11 19:55:10 +10:00
Erik de Castro Lopo
eeae9a0ddc
Cues: Rename SF_CUES fields
2016-04-11 19:55:10 +10:00
Erik de Castro Lopo
fa186436b7
src/sndfile.h.in: Formatting only
2016-04-11 19:55:10 +10:00
Erik de Castro Lopo
60648664a3
doc/command.html: Spaces instead of tabs for code
2016-04-11 19:55:10 +10:00
Lars Palo
b0ab4e6bee
Updates to original patch
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2016-04-11 19:55:10 +10:00
Lars Palo
f36189554b
Added tests for cues
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2016-04-11 19:55:10 +10:00
Lars Palo
0685e428c0
Added cues to wav
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2016-04-11 19:55:10 +10:00
Lars Palo
3500ad97a9
Added cues to sndfile
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2016-04-11 19:55:10 +10:00
Lars Palo
0dae66a5e3
Add cue function to common
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2016-04-11 19:55:10 +10:00
Lars Palo
e24fe2a50f
Add cues to aiff
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2016-04-11 19:55:10 +10:00
Lars Palo
bda4eb309c
Add cues to sndfile-convert
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2016-04-11 19:55:10 +10:00
Lars Palo
c1a28d8528
Document cue markers and make a small correction to instrument documentation.
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2016-04-11 19:55:10 +10:00
Erik de Castro Lopo
bf180cfbcc
doc/api.html: Improve sf_read/readf_* and sf_write/writef_* docs
...
Patch modified very slightly from the one submitted in the issue
below.
Closes: https://github.com/erikd/libsndfile/issues/129
2016-04-11 19:52:56 +10:00
Erik de Castro Lopo
1a774a1040
src/test_endswap: Fix cppcheck warning
2016-04-02 19:45:58 +11:00
Erik de Castro Lopo
e8ce824d83
programs/sndfile-cmp.c: Fix cppcheck warning
2016-04-02 19:31:11 +11:00
Erik de Castro Lopo
19d4373c02
programs/sndfile-metadata-set.c: Fix memory leak
...
Found using address sanitizer (ASAN).
2016-04-02 19:29:49 +11:00
Erik de Castro Lopo
afdecb6eab
programs/test-sndfile-metadata-set.py: Print output on failure
2016-04-02 18:52:59 +11:00
Erik de Castro Lopo
563e514f34
programs/: Fix tests when cross compiling from linux to windows
...
When cross-compiling, the programs have a `.exe` file extension.
2016-04-02 18:23:46 +11:00
Erik de Castro Lopo
3663c1b5b5
programs/: Add tests for get/set metadata
2016-04-02 10:33:44 +11:00
Erik de Castro Lopo
9cbb0511c6
src/sndfile.c: Document sf_get/set_chunk
...
Specifically that AIFF, CAF, RF64 and WAV are supported and that
W64 is not.
2016-03-29 18:36:05 +11:00
Erik de Castro Lopo
de3f7a6e76
CMakeLists.txt: Rename EXTERNAL_*
to EXTERNAL_XIPH_*
2016-03-14 17:45:17 +11:00
Erik de Castro Lopo
95828ca2e9
Rename EXTERNAL_*
to EXTERNAL_XIPH_*`
...
New naming makes sense because adding Wavpack support would not
depend on any of the existing Xiph.Org libraries.
2016-03-14 08:17:45 +11:00