Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,7 @@ extern const CELTMode *celt_stereo;
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);
......
......@@ -29,6 +29,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "celt.h"
#include "modes.h"
#include "os_support.h"
......
......@@ -89,6 +89,7 @@ int main(int argc, char *argv[])
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment