ref: 5aa57e4f07d05d99e02e3640f95bb7f68436b6de
parent: 4d3e105a6c1d144760ddeb3c1951fa838b935747
author: Jean-Marc Valin <[email protected]>
date: Thu Feb 3 19:04:26 EST 2011
Configure option for custom modes
--- a/configure.ac
+++ b/configure.ac
@@ -124,6 +124,13 @@
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
--- a/libcelt/modes.h
+++ b/libcelt/modes.h
@@ -41,7 +41,7 @@
#include "entenc.h"
#include "entdec.h"
-#define CELT_BITSTREAM_VERSION 0x8000000f
+#define CELT_BITSTREAM_VERSION 0x80000010
#define MAX_PERIOD 1024