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