Commit Graph

2805 Commits

Author SHA1 Message Date
evpobr
ee57a6fcd0 README.md: Remove experimental CMake status 2020-08-26 12:24:11 +05:00
evpobr
acfcd147da Move public headers to include directory 2020-08-26 11:59:26 +05:00
evpobr
8bff71c07f CI: Don't terminate all jobs on first job failure 2020-08-25 16:29:38 +05:00
evpobr
70472176a3 src/sfendian.h: Fix bunch of conversion warnings
Hundreds conversion warnings with MSVC compiler.
2020-08-24 15:13:00 +05:00
evpobr
f7e5bcb5a2 CMake: Fix ENABLE_STATIC_RUNTIME warning
Warning about unusable ENABLE_STATIC_RUNTIME appeared on non-MSVC
platforms even if this option was not set.

Related to 26e4737,  #546,
2020-08-24 14:33:51 +05:00
evpobr
26e473796c CMake: Deprecate ENABLE_STATIC_RUNTIME for CMake >=3.15
Closes #546.
2020-08-24 12:58:21 +05:00
evpobr
4f6f65752b doc/index.html: Extract formats table to formats.html
It is too wide for index page, especially for mobile devices.

Now it is moved to formats.html.
2020-08-23 12:27:21 +05:00
evpobr
7eff80f451 doc/api.html: Document the rest of public API 2020-08-23 11:29:57 +05:00
evpobr
e78b35889f src/common.h: Include inttypes.h first 2020-08-21 11:26:58 +05:00
evpobr
3e2ca0b520 Fix coding style violations 2020-08-21 11:15:15 +05:00
evpobr
fa7c4905e2 CI: Check pull requests too
Check not only pushes to master, but also pull requests.

Related to #545.
2020-08-20 12:51:14 +05:00
evpobr
41bba15973 Fix compiler warnings
Fix GCC 10.2.0 with -Wall -Wextra warnings.

src/ogg.c: Fix compiler warning

-Wsign-compare in ogg_stream_seek_page_search().

src/misc_test.c: Fix compiler warnings

-Wunused-parameter, -Wunused-variable in filesystem_full_test().

Windows platforms only.

src/ms_adpcm.c: Fix compiler warnings

-Wmaybe-uninitialized in msadpcm_encode_block().

src/ogg.c: Fix compiler warning

Comparison of distinct pointer types lacks a cast in
ogg_read_first_page().
2020-08-20 12:33:20 +05:00
evpobr
7c6f3fee50 doc/command.html: Fix typos 2020-08-18 13:00:25 +05:00
evpobr
2dd47fcc70 CI: Replace CI workflows with Github Actions
Closes #545
2020-08-18 12:18:46 +05:00
evpobr
5520e32b6a CMake: Add INSTALL_PKGCONFIG_MODULE option
Closes #547
2020-08-18 11:28:35 +05:00
evpobr
2bc2d4e4dc CMake: Fix ENABLE_CPACK option
Closes #544
2020-08-18 11:12:56 +05:00
evpobr
55135313d4 Revert "src/pcm.c: Add const to some function parameters"
This reverts commit a748bea5f2.
2020-08-18 09:40:15 +05:00
evpobr
a748bea5f2 src/pcm.c: Add const to some function parameters 2020-08-18 09:05:27 +05:00
evpobr
ccb75f4829 Version 1.0.29 2020-08-15 10:50:52 +05:00
evpobr
9ab0965e88 src/sndfile.h.in: Fix sf_command() description
Closes #540.
2020-08-11 08:41:51 +05:00
evpobr
af49a5021c CMake fixes
* Set static runtime by default for MinGW

  Autotools does the same. Also fixes bug - compiler flags for MinGW were
  cleared by when ENABLE_STATIC_RUNTIME is OFF (default).

  Also ENABLE_STATIC_RUNTIME option disabled for MinGW.

* Better CMake policies handling
* Add SndFile::sndfile alias library
* Don not add programs to package config-file
* Update README.md
* Fix generator expression with src/version-metadata.rc
2020-08-04 15:59:22 +05:00
Nick Henderson
676eb28fc2 README.md: Fix the brew install command
'opus' is the name of the Homebrew package for the
Opus codec.
2020-08-03 20:55:51 +05:00
evpobr
73e09a1705 CMake: Fix Vorbis dependency handling
* Fix Vorbis not found for CMake < 3.17 (closes #530)
* Update FindVorbis module documentation
* Remove unused VorbisEnc.cmake
* Fix bug in SndFileConfig.cmake.in
2020-08-02 16:13:38 +05:00
evpobr
7a8149a723 Azure Pipelines CI: Update images 2020-08-02 16:11:11 +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
Erik de Castro Lopo
422b29c06d src/sd2.c: Fix parsing of some SD2 files
Exit early when Photoshop file is detected.

Closes: https://github.com/erikd/libsndfile/issues/526
2020-06-20 13:45:13 +10:00
Erik de Castro Lopo
de7d60fe6e src/wavlike.c: Fix compiler warning
Closes: https://github.com/erikd/libsndfile/issues/527
2020-06-20 13:45:13 +10:00
Max Smolens
808fb07864 CMake: Fix Package Configuration file when ENABLE_EXTERNAL_LIBS is OFF
When libsndfile is configured with ENABLE_EXTERNAL_LIBS=OFF, the CMake
Package Configuration file shouldn't look for the external libraries.
Otherwise, the return() call in the find_dependency() macro causes
find_package(SndFile) to fail if the libraries are not found.

Furthermore, the find_dependency() calls are necessary only when
BUILD_SHARED_LIBS=OFF. In other scenarios, the external libraries aren't
linked by client projects.
2020-06-19 20:58:00 +10:00
evpobr
06ebde50e3 CMake fixes
* Update Vorbis targets to match upstream
* Better dependency handling with Vcpkg
* Fix dev warning with SQLite3
2020-04-12 16:20:04 +10:00
evpobr
a1fa15ff44 cmake: Bump version to 1.0.29pre2 2020-04-07 18:54:45 +10:00
Nicolas Imbard
e1afeec6e8 opus: Allow setting of OGG page latency
Latency is set via 'sf_command' using 'SFC_SET_OGG_PAGE_LATENCY_MS'.
Max average latency set at 1600ms, min average latency set at 50ms.
Default latency set at 1000ms.

Closes: https://github.com/erikd/libsndfile/pull/512
2020-04-05 20:07:01 +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
Leland Lucius
bbe1975e1f Fix IMA-ADPCM encoding for AIFF files
Closes: https://github.com/erikd/libsndfile/pull/516
2020-04-05 20:07:01 +10:00
Dragos Oancea
49b7d619a8 src/ima_adpcm.c: Fix ASAN crash in wavlike_ima_seek()
ASAN says: "pc points to the zero page"

Closes: https://github.com/erikd/libsndfile/pull/507
2020-04-05 20:07:01 +10:00
Kevin Calhoun
7695e5b3f3 Wave64: Permit and skip arbitrary chunks prior to the data chunk
Closes: https://github.com/erikd/libsndfile/pull/509
2020-04-05 18:28:14 +10:00
evpobr
4bdd741460 azure-pipelines.yml: Add Opus dependency 2020-03-08 17:35:14 +11:00
evpobr
e6909192ce CMake improvements
* Fix Ogg and Opus imported targets
* Better SndFileConfig.cmake module with dependency checks
* Fix config-file package installation directory
* Prefer config-file package mode for Windows CI builds
* Update README.md
* Allow CMAKE_MSVC_RUNTIME_LIBRARY option to set MSVC ABI
* Fix some bugs in FindFLAC.cmake (closes #505)
2020-03-08 17:34:27 +11:00
Jean Pierre Cimalando
a7e9fb5f7c List pkgconfig dependencies in Requires.private 2020-03-08 13:02:42 +11:00
Henner Zeller
d397671809 Add libopus to the build-dependency requirements in READMEs. 2019-11-10 09:37:00 +11:00
evpobr
97a361afc2 README.md: Fix information about CMake builds
Closes #494.
2019-10-24 18:32:01 +11:00
Naji Mammeri
ae64caf9b5 Fix building programs while BUILD_SHARED_LIBS=ON 2019-10-13 08:54:20 +11:00
evpobr
be5a7ccee3 CMake: fix default install directory on Windows
Closes #486.
2019-09-17 06:21:32 +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
evpobr
22c2fa64c2 tests/command_test.c: Fix format specifiers
Closes: #472
2019-07-02 20:59:35 +10:00
Erik de Castro Lopo
6978654319 configure.ac: 1.0.29rc2 2019-06-13 19:19:10 +10:00
Martin Delille
2269af8417 Fix zero-as-null-pointer-constant-warning 2019-06-12 07:18:30 +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
a3a4d7a089 opus: Fix issues found using fuzzing 2019-04-22 02:48:50 +10:00
David Seifert
d5531723a0 Ignore -Wformat-truncation warnings
* These are spurious and pollute logs unnecessarily.
2019-04-08 11:06:01 +10:00