ref: 65d57e6e9681053ac255faa3b88542af57bf0b8b
parent: 9838fecf9f936cea7892b057d6f8976b63b135f6
author: Jean-Marc Valin <[email protected]>
date: Mon Feb 18 10:49:37 EST 2008
Can now easily use modes generated on the fly.
--- a/libcelt/celt.h
+++ b/libcelt/celt.h
@@ -58,6 +58,7 @@
extern const CELTMode *celt_ld51;
/* Encoder stuff */
+CELTMode *celt_mode_create(int Fs, int channels, int frame_size, int overlap);
CELTEncoder *celt_encoder_new(const CELTMode *mode);
--- a/libcelt/modes.c
+++ b/libcelt/modes.c
@@ -29,6 +29,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include "celt.h"
#include "modes.h"
#include "os_support.h"
--- a/libcelt/testcelt.c
+++ b/libcelt/testcelt.c
@@ -89,6 +89,7 @@
return 1;
}
+ //mode = celt_mode_create(44100, 1, 256, 128);
/* Use mode4 for stereo and don't forget to change the value of CHANNEL above */
enc = celt_encoder_new(mode);
dec = celt_decoder_new(mode);