Conrad Jones
02467cc1bb
modernize cmake module include.
2018-08-26 14:55:15 +10:00
evpobr
cebfdf275e
Enable ENABLE_COMPATIBLE_LIBSNDFILE_NAME by default
...
Also fix bug from previous commit.
2018-08-25 12:16:36 +10:00
evpobr
61c416219c
Add ENABLE_COMPATIBLE_LIBSNDFILE_NAME option
2018-08-25 12:16:36 +10:00
evpobr
6710ff3fc6
CMake: updates & fixes
2018-08-25 12:16:36 +10:00
evpobr
b0453860db
.travis.yml: upgrade to Xenial image
...
We require pkg-config >= 0.27.
Closes #402
2018-08-10 16:49:23 +10:00
Michael Panzlaff
7ea3f9d874
src/wav.c: Fix WAV Sampler Chunk tune parsing
...
Fix parsing of instrument fine tuning instrument field. There is still
a possible rounding error involved which might require further
investigation at some stage.
Update the test as well.
2018-04-29 12:13:42 +10:00
David Seifert
4ab74d919f
Fix out-of-tree building
2018-04-21 09:23:25 +10:00
David Seifert
f6818f39d7
More portable Make constructs in Makefile.am
2018-04-21 09:23:25 +10:00
Erik de Castro Lopo
fda9c8df2f
sfendian.h: Fix fallback case for endwapping
2018-03-25 11:55:02 +11:00
David Seifert
818ad38a7f
Makefile.am: Use more portable suffix rules
...
Closes: https://github.com/erikd/libsndfile/issues/369
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2018-03-25 11:55:02 +11:00
Arthur Taylor
4e294e4603
Introduce ogg_read_first_page () to avoid seeks on open.
...
Reduce some code duplication of reading the first page of an Ogg bitstream while
also removing the need to re-read the beginning of a file when opening. Fixes
the issue of being unable to read Ogg bitstreams (a container designed for
streaming) from a pipe.
2018-03-20 19:35:47 +11:00
evpobr
1eb2a00199
CMake: fix BUILD_TESTING option
...
Closes : #376
2018-03-18 09:51:19 +11:00
evpobr
e62e5cd9f2
CMake: fix linking winmm.lib under MXE platform
...
Closes : #377
2018-03-18 09:50:57 +11:00
evpobr
a96b6b848a
src/sndfile.c: Remove never reached code
2018-03-18 09:50:35 +11:00
Erik de Castro Lopo
5d5798187f
src: Drop redundant SFE_UNKNOWN_FORMAT enum value
2018-03-17 13:05:25 +11:00
Erik de Castro Lopo
4a30dabe13
src: Always return SF_ERR_UNRECOGNISED_FORMAT on unrecognised
...
Closes: https://github.com/erikd/libsndfile/issues/365
2018-03-17 13:05:25 +11:00
Erik de Castro Lopo
dc56b25f41
tests/error_test.c: Add unrecognised file test
2018-03-17 13:05:25 +11:00
evpobr
4a59daf7e7
src/aiff.c: fix unnecessary variable assignment
2018-03-16 08:23:04 +11:00
Johan Vromans
65eabcbf71
src/wav.c: Fix skipping of erroneous subchunks
...
Closes: https://github.com/erikd/libsndfile/issues/370
2018-03-15 09:29:19 +11:00
evpobr
a34dc27739
CMake: Add test case for NMS_ADPCM in WAV file
...
Related to #361 .
2018-03-10 15:46:51 +05:00
Erik de Castro Lopo
6f3266277b
Fix max channel count bug
...
The code was allowing files to be written with a channel count of exactly
`SF_MAX_CHANNELS` but was failing to read some file formats with the same
channel count.
2018-03-08 19:23:04 +11:00
Arthur Taylor
4043ec289f
lossy_comp_test: Add tests for NMS_ADPCM in WAV files.
2018-03-08 18:13:03 +11:00
Arthur Taylor
33f0d0658a
wav.c: Specify widths of header members for NMS_VBXADPCM
2018-03-08 18:13:03 +11:00
Arthur Taylor
6239927a11
Support NMS_ADPCM subformats with major format WAVE
2018-03-08 18:13:03 +11:00
Arthur Taylor
89da46f168
wav: Add support for WAVE_FORMAT_NMS_VBXADPCM
...
Found a set of NMS ADPCM wav files to verify.
2018-03-08 18:13:03 +11:00
Arthur Taylor
64e5a3f182
Add NMS ADPCM codec implementation and support
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2018-02-03 19:44:33 +11:00
evpobr
871ecd7f70
src/sndfile.c: Set SFC_GET_LIB_VERSION return result to 0 on error
...
If data == NULL string is not copied but command returns SFE_BAD_COMMAND_PARAM (31). It can be misunsderstood as string length.
2018-02-03 16:23:23 +11:00
Jonathan Wakely
2241075e47
sndfile-convert: Check if conversion failed due to no. of channels
...
This fixes the problem noted in #43 where attempting to convert a stereo
WAV to SDS gives a misleading error about the codec, when the real problem
is that the output format only supports mono not stereo.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2018-02-03 16:12:42 +11:00
Jonathan Wakely
40d3e412e0
Fix spelling
2018-02-03 13:17:04 +11:00
Jan Starý
2acea2723a
sndfile-play: Remove BEOS support
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2018-02-03 13:10:10 +11:00
Jan Starý
e6b473ed8e
drop MacOSX from sndfile-play
...
We don't play on MacOSX >= 10.8 (the code for the new API is not written),
and support for MacOSX older than that was removed some time ago.
So drop the last remnants; we just don't play on MacOSX.
2018-02-03 12:54:50 +11:00
Erik de Castro Lopo
adc0d425f9
configure.ac: Report whether building Octave interface
2018-01-07 12:14:46 +11:00
Jan Starý
38f1214117
unbreak sed(1) in pre-commit
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2018-01-07 11:53:48 +11:00
Jan Starý
d1c591aea2
configure.ac: Fix --enable-octave doc string
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2018-01-07 11:50:52 +11:00
Erik de Castro Lopo
6b0df6060c
sndfile.c: Return the length of log output
...
There were two handers for SFC_GET_LOG_INFO and one incorrectly was
not returning the length of log string.
Closes: https://github.com/erikd/libsndfile/issues/345
2017-12-13 18:54:31 +11:00
David Honour
d252bec831
Simplify psf_fseek logic
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-11-26 16:26:40 +11:00
David Honour
24075a649a
Add test to reproduce seeking with fileoffset bugs
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-11-26 16:24:30 +11:00
evpobr
826d5296da
Add AppVeyor CI script
2017-10-31 19:30:54 +11:00
Erik de Castro Lopo
5d4d1feca0
Remove redundant libsndfile.def.in
2017-10-31 18:42:40 +11:00
Erik de Castro Lopo
af9d26411b
Scripts/build-test-tarball.mk.in: Updates
2017-10-28 16:17:55 +11:00
Erik de Castro Lopo
dfe09db021
Makefile.am: Resurect test-tarball target
2017-10-28 12:55:50 +11:00
Erik de Castro Lopo
ac5b66a447
configure.ac: Add -mstackrealign to CFLAGS for mingw*
2017-10-27 19:35:21 +11:00
Erik de Castro Lopo
9b4fdaccc1
tests/header_test.tpl: Fix a memory leak
...
Found using AddressSanitizer.
2017-10-26 19:21:06 +11:00
evpobr
fa92cc4b88
src/sfconfig.h: Fix CPU architecture detection under Windows
2017-10-21 18:35:45 +11:00
evpobr
d356f3f292
src/sfendian.h: Detect and use MSVC byte swap intrinsics
2017-10-21 18:34:48 +11:00
Erik de Castro Lopo
e02f64cd98
Fix travis OSX build
2017-10-14 21:24:29 +11:00
Erik de Castro Lopo
203096325d
programs/sndfile-convert.c: Add -float64 conversion
2017-10-14 20:54:56 +11:00
David Seifert
b17f14d613
Make git checkout buildable out-of-tree
...
Currently, libsndfile requires in-tree bootstrapping and creation
of the tarball. For Gentoo, some users might want to build the
latest git checkout. This commit makes out-of-tree building of all
the necessary dependencies possible.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-10-08 18:23:58 +11:00
Derek Gasaway
2c2d9a8eb2
Remove unused internal headers from examples.
2017-10-02 10:26:32 +11:00
Erik de Castro Lopo
cc5e831a75
A couple of minor cstyle fixes
2017-10-01 16:33:41 +11:00