[PATCH] Allow configuration of the Speex resampler instead of libsamplerate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

this patch adds the configure option '--enable-speex-resample' which (in combination with '--disable-libsamplerate') allows the use of the BSD-licensed Speex resampler instead of libsamplerate which can be problematic due to its LGPL license.

The patch only addresses the aconfigure.ac file (autoconf needs to be called to recreate aconfigure after applying the patch)... and of course the Speex codec needs to be enabled (but not necessarily used) for this setup to work.

Regards
Tobias
--- aconfigure.ac	2017-01-25 12:23:08.000000000 +0100
+++ aconfigure.ac	2017-08-09 09:39:18.763832385 +0200
@@ -981,6 +981,16 @@
 	       fi],
 	      AC_MSG_RESULT([Checking if iLBC codec is disabled...no]))

+dnl # Use Speex resampling instead of libsamplerate
+AC_ARG_ENABLE(speex-resample,
+	      AS_HELP_STRING([--enable-speex-resample],
+			     [Use the Speex resampler instead of libsamplerate (experimental)]),
+	      [if test "$enable_speex_resample" = "yes"; then
+		[ac_pjmedia_resample=speex]
+		AC_MSG_RESULT([Checking if Speex resampler is enabled...yes])
+	       fi]
+	      )
+
 dnl # Include libsamplerate
 AC_ARG_ENABLE(libsamplerate,
            AS_HELP_STRING([--enable-libsamplerate],
_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux