Line | |
---|
1 | //codecfilter_speex.h.h: |
---|
2 | |
---|
3 | #ifndef _CODECFILTER_SPEEX_H_ |
---|
4 | #define _CODECFILTER_SPEEX_H_ |
---|
5 | |
---|
6 | #include <roaraudio.h> |
---|
7 | #include <speex/speex.h> |
---|
8 | #include <speex/speex_stereo.h> |
---|
9 | |
---|
10 | struct codecfilter_speex_inst { |
---|
11 | void * encoder; |
---|
12 | void * decoder; |
---|
13 | SpeexBits bits; |
---|
14 | struct roar_stream_server * stream; |
---|
15 | int frame_size; |
---|
16 | void * cd; /* current data */ |
---|
17 | char cc[ROAR_SPEEX_MAX_CC]; /* buffer for read() and write() */ |
---|
18 | void * i_rest; /* rest... */ |
---|
19 | int fi_rest; |
---|
20 | |
---|
21 | /* |
---|
22 | char * ibuf; |
---|
23 | char * obuf; |
---|
24 | int out_size; |
---|
25 | char * i_rest; |
---|
26 | char * o_rest; |
---|
27 | int s_buf; |
---|
28 | int fi_rest; /-* how much is in rest? *-/ |
---|
29 | int fo_rest; /-* how much is in rest? *-/ |
---|
30 | */ |
---|
31 | }; |
---|
32 | |
---|
33 | int cf_speex_open(CODECFILTER_USERDATA_T * inst, int codec, |
---|
34 | struct roar_stream_server * info, |
---|
35 | struct roar_codecfilter * filter); |
---|
36 | |
---|
37 | int cf_speex_close(CODECFILTER_USERDATA_T inst); |
---|
38 | |
---|
39 | int cf_speex_read(CODECFILTER_USERDATA_T inst, char * buf, int len); |
---|
40 | int cf_speex_write(CODECFILTER_USERDATA_T inst, char * buf, int len); |
---|
41 | |
---|
42 | #endif |
---|
43 | |
---|
44 | //ll |
---|
Note: See
TracBrowser
for help on using the repository browser.