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