Commit Graph

405 Commits

Author SHA1 Message Date
Arthur Taylor
682eee35f3 configure.ac: Handle 'beta' suffix in WIN_RC_VERSION generation 2021-06-18 11:00:17 +05:00
David Seifert
dfdad63ff2
Release 1.1.0beta1 2021-06-13 15:33:10 +02:00
evpobr
85aea74e57 Update sndfile.pc for MPEG support 2021-05-25 16:17:04 +05:00
evpobr
494a6d633e autotools: Use ABI version for symbol scripts 2021-05-21 15:27:37 +05:00
Arthur Taylor
663a59aa6e mpeg: Add MPEG Encode, Decode and Tests
Use SF_FORMAT_MP3 major and SF_FORMAT_MPEG_LAYER_(I|II|III) subformats.
2021-03-25 10:26:15 -07:00
evpobr
1875f49bbf common: Allow to use C99 bool 2021-03-18 15:10:35 +05:00
David Seifert
d60deb5d86
Release 1.0.31
Fixes #693
2021-01-24 13:22:23 +01:00
evpobr
e7f5137b47 Implement fast SSE2 lrint and lrintf, closes #660
lrint() and lrintf() are ridiculously slow when libsndfile is built
using Visual C++.

On x86 and AMD64 platforms this patch adds SSE2 optimized versions.

It is safe to assume that non-SSE2 processors are no longer available to
avoid unnecessary checks.
2020-12-08 10:42:26 +05:00
Tom Stellard
91128fcd60 configure: Use version-script when compiling with clang on unix
This fixes incompatibilities with the clang and gcc builds, and also
matches what is done in the CMake builds.
2020-11-21 16:55:14 +05:00
evpobr
942acc65bf Update site documentation
* Use GitHub's Jekyll static site generator.
* Move all documentation to docs/ directory.
* Convert HTML to Markdown.
2020-10-19 16:52:27 +05:00
evpobr
4a253ba0dc Update documentaton links 2020-10-05 12:21:19 +05:00
evpobr
68958f9c91 Release 1.0.30 2020-09-19 11:48:47 +05:00
Max Dymond
20c65fecd9 Add ossfuzz support for libsndfile
Fixes #476

Add a fuzzer (`sndfile_fuzzer`) which can be compiled and run
by the OSS-Fuzz infrastructure.
2020-08-28 14:41:37 +05:00
evpobr
acfcd147da Move public headers to include directory 2020-08-26 11:59:26 +05:00
evpobr
ccb75f4829 Version 1.0.29 2020-08-15 10:50:52 +05:00
Jean Pierre Cimalando
a7e9fb5f7c List pkgconfig dependencies in Requires.private 2020-03-08 13:02:42 +11:00
Erik de Castro Lopo
6978654319 configure.ac: 1.0.29rc2 2019-06-13 19:19:10 +10:00
David Seifert
d5531723a0 Ignore -Wformat-truncation warnings
* These are spurious and pollute logs unnecessarily.
2019-04-08 11:06:01 +10:00
Erik de Castro Lopo
7c5da26b70 static-deps-build.mk: Add opus to build 2019-02-26 20:22:14 +11:00
Arthur Taylor
326e4533f3 Opus file support
Ogg: Introduce new functions ogg_sync_fseek(), ogg_ftell(), ogg_next_page(),
ogg_stream_next_page(), ogg_sync_last_page_before(), and
ogg_stream_unpack_page(). Use ogg_sync_* for ogg_read_first_page(). Bump libogg
version requirement from 1.1.3 to 1.3.0 as LibOgg 1.3.0 is required for
ogg_stream_pageout_fill() and ogg_stream_flush_fill().

Opus: Add opus support. Document added commands
SFC_(GET|SET)_ORIGINAL_SAMPLERATE. Added or extended tests ogg_opus_test,
compression_size_test, floating_point_test, lossy_comp_test, string_test,
external_libs_test. Change Opus to non-experimental.
2019-02-20 19:30:30 +11:00
evpobr
1e4e839008
Update configure.ac
We use C99, so no we don't need -Wdeclaration-after-statement warning

Related to: #357
2018-09-14 09:29:38 +05:00
Erik de Castro Lopo
adc0d425f9 configure.ac: Report whether building Octave interface 2018-01-07 12:14:46 +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
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
ac5b66a447 configure.ac: Add -mstackrealign to CFLAGS for mingw* 2017-10-27 19:35:21 +11:00
Ghabry
3f8d728f01 configure.ac: Fix configure for vitasdk
Closes: https://github.com/erikd/libsndfile/issues/310
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-09-30 20:28:14 +10:00
David Seifert
e6c42ff027 Make build system completely non-recursive 2017-09-26 19:35:56 +10:00
Erik de Castro Lopo
c144d78fd4 Fix sf_count_t detection on android
Closes: https://github.com/erikd/libsndfile/issues/295
2017-07-03 06:22:01 +10:00
David Seifert
7b099b2370 Remove echo-install-dirs script and inline echo statements
* Using AX_RECURSIVE_EVAL to determine the full absolute path
  and printing it inline in the configure script is less
  brittle than calling another script from configure.
2017-06-06 08:19:21 +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
David Seifert
d607b78f02 Produce bzip tarballs
* bzip tarballs are significantly smaller than gzip
  tarballs and preferred by distributions nowadays.
2017-06-06 08:19:21 +10:00
David Seifert
2e24132b84 Do not add Makefile.am in M4/ dir 2017-06-06 06:41:55 +10:00
David Seifert
ccbba1957d Replace some MN_* macros by AX_* macros 2017-06-06 06:41:55 +10:00
David Seifert
a274030cc0 Cleanup configure.ac to use modern Autoconf idioms 2017-06-06 06:41:55 +10:00
evpobr
3d8399dfde Fix broken ABI
Unfortunately ABI was broken when symbols files were removed
in favour of new visibility control of exported functions.

Visibility control with -fvisibility works fine, but symbol
scripts had another feature - versioned symbols. And we lost it.

Since we can not make our symbols to be versioned  with the new
approach, it's decided to return everything back.

* CMake: Restore symbol files generation
* CMake: Python is required to build shared libraries
* Autotools: Restore symbol files generation

Closes: https://github.com/erikd/libsndfile/issues/268
2017-05-26 06:16:42 +10:00
evpobr
5c6129fce6 Autotools: Implement symbols visibility control
* Use symbol file under Win32 with MinGW only
* Use unified visibility control for other platforms
* Add recommended win32-dll option to LT_INIT macro

Closes: https://github.com/erikd/libsndfile/issues/213
2017-04-28 18:01:09 +10:00
evpobr
356a8c8fe3 configure.ac: Remove useless LIBTOOL_DEPS macro
It is not required when using libtool with automake, as we do.

Proof: http://tinf2.vub.ac.be/~dvermeir/manual/autobook/autobook-1.2/autobook_87.html

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-04-05 19:35:27 +10:00
Erik de Castro Lopo
170a10ab8d configure.ac: Test if -Wvla is supported before adding it 2017-04-03 18:48:38 +10:00
Erik de Castro Lopo
1d928bffdb Version 1.0.28 2017-04-02 18:52:51 +10:00
evpobr
1bff04b3ae Add API exported functions visibility control
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-03-15 06:13:19 +11:00
David Seifert
a87b68ce3c Add AM_PROG_AR to configure.ac
Libtool requires AM_PROG_AR to be fully portable:

  warning: 'libsndfile.la': linking libtool libraries using a non-POSIX
  requires 'AM_PROG_AR' in 'configure.ac'

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Closes: https://github.com/erikd/libsndfile/pull/193
2017-01-28 21:24:23 +11:00
David Seifert
e1ac9d94c3 'rm -f' can be used on non-existent files.
Using test before running rm -f is unnecessary, as it
will lead to a non-zero exit code if the file does not
exist, in turn leading to 'make distcheck' failing.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-01-28 21:16:21 +11:00
David Seifert
88956f7ac2 Test whether -D_FORTIFY_SOURCE needs to be added at all
Some distributions unconditionally enable -D_FORTIFY_SOURCE, and
adding it to CFLAGS might cause a slew of warnings:

  <command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
  <built-in>: note: this is the location of the previous definition

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
David Seifert
0fd257e432 Make programs optional
Some distributions build multiple ABIs (x86 and am64) to support
legacy platforms. For the non-native ABIs, building the programs
and examples is pointless and a waste of resources.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-01-28 21:16:21 +11:00
David Seifert
ae6a26c8d4 Replace AC_HELP_STRING by AS_HELP_STRING
AC_HELP_STRING has been deprecated years ago.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-01-28 21:16:21 +11:00
David Seifert
947af45028 Compile 'sndfile-regtest' only when sqlite3 is available
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-01-28 21:16:21 +11:00
Erik de Castro Lopo
e4572180c3 configure.ac: Fix detection of Large File Support
Support for files over 2 gigabytes has been broken for some time on
32 bit systems and no one noticed.
2016-11-14 08:28:44 +11:00
Erik de Castro Lopo
a547d06726 Revert "configure.ac: Fix out-of-tree builds"
This reverts commit 1015973005
because that commit messes up 'make distcheck'.
2016-09-11 09:02:27 +10:00