1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-10 16:43:33 +02:00

Rob's 3resamplers.patch

This commit is contained in:
v.audacity
2012-11-04 19:03:22 +00:00
parent 0adda738dc
commit 17d33203c9
6 changed files with 63 additions and 12 deletions

View File

@@ -7,7 +7,7 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBRESAMPLE], [
AC_ARG_WITH(libresample,
[AS_HELP_STRING([--with-libresample],
[use libresample for sample rate conversion: [yes,no]])],
[use libresample for variable-rate resampling: [yes,no]])],
LIBRESAMPLE_ARGUMENT=$withval,
LIBRESAMPLE_ARGUMENT="unspecified")

View File

@@ -7,7 +7,7 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBSAMPLERATE], [
AC_ARG_WITH(libsamplerate,
[AS_HELP_STRING([--with-libsamplerate],
[use libsamplerate instead of libresample for sample rate conversion. Do not use in conjunction with VST plug-in support!])],
[use libsamplerate instead of libresample for variable-rate resampling. Do not use in conjunction with VST plug-in support!])],
LIBSAMPLERATE_ARGUMENT=$withval,
LIBSAMPLERATE_ARGUMENT="unspecified")

View File

@@ -7,7 +7,7 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBSOXR], [
AC_ARG_WITH(libsoxr,
[AS_HELP_STRING([--with-libsoxr],
[use libsoxr for sample rate conversion: [yes,no]])],
[use libsoxr for constant-rate resampling: [yes,no]])],
LIBSOXR_ARGUMENT=$withval,
LIBSOXR_ARGUMENT="unspecified")
@@ -18,9 +18,25 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBSOXR], [
dnl see if libsoxr is installed on the system
dnl ... but libsoxr isn't yet generally installed as a system library...
AC_CHECK_LIB(soxr, soxr_create,
libsoxr_found="yes",
libsoxr_found="no")
LIBSOXR_SYSTEM_AVAILABLE="no"
soxr_h_found="no"
AC_CHECK_HEADER(soxr.h,
soxr_h_found="yes",
soxr_h_found="no")
if test "x$libsoxr_found" = "xyes" && test "x$soxr_h_found" = "xyes" ; then
LIBSOXR_SYSTEM_AVAILABLE="yes"
LIBSOXR_SYSTEM_LIBS="-lsoxr"
LIBSOXR_SYSTEM_CPPSYMBOLS="USE_SYSTEM_SOXR"
AC_MSG_NOTICE([Soxr libraries are available as system libraries])
else
LIBSOXR_SYSTEM_AVAILABLE="no"
AC_MSG_NOTICE([Soxr libraries are NOT available as system libraries])
fi
dnl see if libsoxr is available locally
@@ -30,7 +46,7 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBSOXR], [
if test "x$soxr_h_found" = "xyes" ; then
LIBSOXR_LOCAL_AVAILABLE="yes"
LIBSOXR_LOCAL_LIBS="libsoxr-lsr.a libsoxr.a"
LIBSOXR_LOCAL_LIBS="libsoxr.a"
LIBSOXR_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/libsoxr/src'
LIBSOXR_LOCAL_CPPSYMBOLS="USE_LIBSOXR"