Commit 65d57e6e authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Can now easily use modes generated on the fly.

parent 9838fecf
...@@ -58,6 +58,7 @@ extern const CELTMode *celt_stereo; ...@@ -58,6 +58,7 @@ extern const CELTMode *celt_stereo;
extern const CELTMode *celt_ld51; extern const CELTMode *celt_ld51;
/* Encoder stuff */ /* Encoder stuff */
CELTMode *celt_mode_create(int Fs, int channels, int frame_size, int overlap);
CELTEncoder *celt_encoder_new(const CELTMode *mode); CELTEncoder *celt_encoder_new(const CELTMode *mode);
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "celt.h"
#include "modes.h" #include "modes.h"
#include "os_support.h" #include "os_support.h"
......
...@@ -89,6 +89,7 @@ int main(int argc, char *argv[]) ...@@ -89,6 +89,7 @@ int main(int argc, char *argv[])
return 1; 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 */ /* Use mode4 for stereo and don't forget to change the value of CHANNEL above */
enc = celt_encoder_new(mode); enc = celt_encoder_new(mode);
dec = celt_decoder_new(mode); dec = celt_decoder_new(mode);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment