Configure option for custom modes
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Fri, 4 Feb 2011 05:04:26 +0000 (00:04 -0500)
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Fri, 4 Feb 2011 05:04:26 +0000 (00:04 -0500)
configure.ac
libcelt/modes.h

index f4eb4c5..dc7dfc2 100644 (file)
@@ -124,6 +124,13 @@ AC_ARG_ENABLE(experimental-postfilter, [  --enable-experimental-postfilter     E
   AC_DEFINE([ENABLE_POSTFILTER], , [Postfilter])
 fi])
 
+ac_enable_custom_modes="no"
+AC_ARG_ENABLE(custom-modes, [  --enable-custom-modes        Enable non-Opus modes, like 44.1 kHz and powers of two ],
+[if test "$enableval" = yes; then
+  ac_enable_custom_modes="yes"
+  AC_DEFINE([CUSTOM_MODES], , [Custom modes])
+fi])
+
 float_approx=$has_float_approx
 AC_ARG_ENABLE(float-approx, [  --enable-float-approx   enable fast approximations for floating point],
     [ if test "$enableval" = yes; then
index d874d7b..249ffac 100644 (file)
@@ -41,7 +41,7 @@
 #include "entenc.h"
 #include "entdec.h"
 
-#define CELT_BITSTREAM_VERSION 0x8000000f
+#define CELT_BITSTREAM_VERSION 0x80000010
 
 #define MAX_PERIOD 1024