Felix Lange
ca2008903f
sndfile-convert: fix typo in error message ( #793 )
...
Co-authored-by: evpobr <evpobr@gmail.com>
2021-11-24 09:52:36 +05:00
David Seifert
4b64fd767a
programs/sndfile-deinterleave.c: fix broken calloc call
...
Fixes #783
2021-10-24 14:26:31 +02:00
nia
3ead8d2266
sndfile-play: Add NetBSD support ( #776 )
...
* sndfile-play: Use Sun-compatible audio device on NetBSD
Keep the gain unchanged. Avoids distortion from playing sounds
too loudly and preserves the user's existing volume settings.
2021-09-21 14:15:14 +02:00
papadave66
f65e8bc9d1
Fix duplicated case value of ESTRPIPE on BSD
2021-09-08 13:40:59 +05:00
evpobr
2421c8501e
sndfile-info: Remove duplicate array
2021-09-01 11:55:31 +05:00
Arthur Taylor
fe51e9b093
programs: Add MPEG related handling, other misc Ogg handling fixes.
...
- Add MPEG major and minor formats to string printing routines.
- Don't warn when adding a broadcast chunk to a MPEG WAV.
- sndfile-convert: Infer that ".ogg" suffix means Ogg+Vorbis. This
aligns with Xiph.org
- sndfile-info: Properly calculate the dB of Vorbis and Opus files. The
handling of the allowable sample range of these files may need to be
investigated in future.
2021-04-03 13:56:09 -07:00
Arthur Taylor
fe2ed77134
Add MPEG FORMAT to SF_COMMAND_*FORMAT, program common.
2021-03-25 10:26:15 -07:00
evpobr
6fb0313563
sndfile-interleave: Fix large stack allocation
2021-03-16 16:30:07 +05:00
evpobr
19a4498736
sndfile-deinterleave: Fix resource cleanup
2021-03-16 16:30:07 +05:00
evpobr
6dee7120ab
sndfile-salvage: Handle files > 4 GB on Windows OS
2021-03-06 21:44:33 +05:00
evpobr
36c5198d91
common: Fix regression after 4ff3b84
2021-03-06 12:00:31 +05:00
evpobr
61bcb5e979
Fix previous commit
2021-03-06 11:54:08 +05:00
evpobr
4ff3b84eff
msvc: Fix annoying conversion warnings #304
2021-03-06 11:41:47 +05:00
evpobr
3b8e3ef807
sndfile-deinterleave: Fix large stack allocation
2021-03-04 20:28:58 +05:00
evpobr
c29a002749
sndfile-info: Use proper format specifiers
2021-02-25 12:47:27 +05:00
evpobr
e01ee91591
Fix Clang warnings
2020-09-04 10:03:09 +05:00
Fabian Greffrath
2ccb23fe72
sfe_copy_data_fp: check value of "max" variable for being normal
...
and check elements of the data[] array for being finite.
Both checks use functions provided by the <math.h> header as declared
by the C99 standard.
Fixes #317
CVE-2017-14245
CVE-2017-14246
2020-06-20 18:18:11 +10:00
Arthur Taylor
65e13303ae
sndfile-convert: Handle gsm, vox and opus extensions the same way
...
Closes: https://github.com/erikd/libsndfile/pull/498
2020-04-05 20:07:01 +10:00
Moonbase59
3a57ea117b
Add BWF v2 loudness parameters
...
Closes: https://github.com/erikd/libsndfile/issues/479
2019-08-27 07:28:25 +10:00
Erik de Castro Lopo
25824cb914
sndfile-convert: Close input file on output format error
2019-04-22 02:48:50 +10:00
Erik de Castro Lopo
df55170ce4
sndfile-convert: Fix conversion to/from Opus
2019-04-22 02:48:50 +10:00
Erik de Castro Lopo
238ee50429
programs/sndfile-convert.c: Add -opus option
2019-02-23 18:30:02 +11:00
Marcel Waldvogel
c0dd8b4a4f
Handle snprintf() format-truncation warnings
2019-01-03 15:21:05 +11:00
Brett T. Warden
aaea680337
Check MAX_CHANNELS in sndfile-deinterleave
...
Allocated buffer has space for only 16 channels. Verify that input file
meets this limit.
Fixes #397
2018-08-29 08:20:56 +10: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
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
203096325d
programs/sndfile-convert.c: Add -float64 conversion
2017-10-14 20:54:56 +11:00
David Seifert
e6c42ff027
Make build system completely non-recursive
2017-09-26 19:35:56 +10:00
Erik de Castro Lopo
e6a1749832
sndfile-deinterleave.c: Check for errors in path handling
...
Closes: https://github.com/erikd/libsndfile/issues/301
2017-07-29 12:08:10 +10:00
Erik de Castro Lopo
5efe93de20
programs/common.c: Fix compiler warning
2017-07-29 12:08:10 +10:00
evpobr
affb1d088d
programs/sndfile-salvage.c: Fix wrong filename in error message
...
Closes : #290
2017-06-14 19:55:37 +10:00
David Seifert
7264aefd09
Use AM_PATH_PYTHON to handle python
...
* AM_PATH_PYTHON is more versatile and allows the
user to specify the python interpreter to use.
2017-06-06 08:19:21 +10:00
Erik de Castro Lopo
d5b785afdd
sndfile-play.c: Fix scaling of float samples with ALSA.
...
Seems ALSA wants float samples in the [-1.0, 1.0] range.
Closes: https://github.com/erikd/libsndfile/issues/275
2017-05-31 20:02:04 +10:00
evpobr
58737ceb48
tests: Fixes for MSVC
...
* src/test_main.c: Fix undeclared off_t type with MSVC
* tests/misc_test.c: Fix undefined S_ISCHR & S_ISBLK with MSVC
* tests/stdin_test.c: Fix undefined STDIN_FILENO with MSVC
* tests/win32_ordinal_test.c: Fix undeclared getcwd() with MSVC
* Fix missing unistd.h under Win32
Related: https://github.com/erikd/libsndfile/issues/154
2017-04-14 13:03:27 +10:00
Erik de Castro Lopo
1c0ea87cc3
Rework CMake build system
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-04-05 19:38:36 +10:00
David Seifert
c87b8b79a6
Make 'test-sndfile-metadata-set.py' py2/py3 compatible
...
'#!/usr/bin/env python' constructs are more portable, as they
allow the user to override which python executable is called.
See also:
https://blogs.gentoo.org/mgorny/2016/02/08/a-quick-note-on-portable-shebangs/
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-01-28 21:16:21 +11:00
David Seifert
1bfb5a908f
Refactor generation of test-suite
...
It's more preferable to generate the testsuite when running 'make dist'
or 'make distcheck' instead of running it from the configure script.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-01-28 21:16:21 +11: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
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
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
bb6cd875af
Remove all mentions of Carbon for OSX
...
Suport for Carbon was remove in 2012, but crept back in the same
year in an un-related commit.
Patch-from: Jan Stary <hans@stare.cz>
2015-11-27 06:16:38 +11:00
Erik de Castro Lopo
e19adf46e1
programs/sndfile-play.c: Fix typo in comment
...
OpenBDS -> OpenBSD
2015-10-29 13:16:50 +11:00
Daniel Winzen
cd838a022e
Fix memory leaks
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Closes: https://github.com/erikd/libsndfile/pull/100
2015-08-07 20:19:24 +10:00
Erik de Castro Lopo
95c6970e6d
sndfile-interleave: Fix handling of last buffer
...
Without this patch the longer of the two files being interleaved
could end up truncated.
Patch-from: Jan Stary <hans@stare.cz>
Reported-by: Josef Kucera <kucerjo3@fit.cvut.cz>
2015-04-27 18:28:40 +10:00
Erik de Castro Lopo
20b7b13d35
programs/ : Minor console output fixes.
...
* programs/common.c : Remove copy/paste cruft.
* programs/sndfile-play.c : Fix inconsistent indentation.
Patch-from: Jan Stary <hans@stare.cz>
2014-11-11 06:13:32 -08:00