source: roaraudio/roard/include/codecfilter_celt.h @ 361:1d702adb724a

Last change on this file since 361:1d702adb724a was 361:1d702adb724a, checked in by phi, 16 years ago

only build CELT code if we habe CELT support

File size: 959 bytes
Line 
1//codecfilter_celt.h:
2
3#ifndef _CODECFILTER_CELT_H_
4#define _CODECFILTER_CELT_H_
5
6#include <roaraudio.h>
7
8#ifdef ROAR_HAVE_LIBCELT
9
10#include <celt/celt.h>
11#include <celt/celt_header.h>
12
13struct codecfilter_celt_inst {
14 struct roar_stream_server * stream;
15 CELTMode * mode;
16 CELTEncoder * encoder;
17 CELTDecoder * decoder;
18 int frame_size;
19 int lookahead;
20 int out_size;
21 char * ibuf;
22 char * obuf;
23 char * i_rest;
24 char * o_rest;
25 int s_buf;
26 int fi_rest; /* how much is in rest? */
27 int fo_rest; /* how much is in rest? */
28};
29
30int cf_celt_open(CODECFILTER_USERDATA_T * inst, int codec,
31                                            struct roar_stream_server * info,
32                                            struct roar_codecfilter   * filter);
33
34int cf_celt_close(CODECFILTER_USERDATA_T   inst);
35
36int cf_celt_read(CODECFILTER_USERDATA_T   inst, char * buf, int len);
37int cf_celt_write(CODECFILTER_USERDATA_T   inst, char * buf, int len);
38
39#endif
40
41#endif
42
43//ll
Note: See TracBrowser for help on using the repository browser.