1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| #include <stdlib.h> | #include <celt/celt.h> | int main(int argc, char *argv[]) | { | CELTMode* mode = (CELTMode*)celt_mono; | CELTEncoder* st = celt_encoder_new(mode); | celt_int16_t* pcm = (celt_int16_t*) malloc(sizeof(celt_int16_t)*256); | unsigned char compressed [] = { | 'A', | 'B', | 'C', | 'D', | '\0'}; | celt_encode( | st, | pcm, | compressed, | 1); //target call | return 0; | } |
|