source: roaraudio/roard/include/codecfilter_speex.h @ 372:13f9127d3464

Last change on this file since 372:13f9127d3464 was 372:13f9127d3464, checked in by phi, 16 years ago

done basic structure for cf speex (stolen from cf celt)

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