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; |
---|
[396] | 16 | void * cd; /* current data */ |
---|
[394] | 17 | char cc[ROAR_SPEEX_MAX_CC]; /* buffer for read() and write() */ |
---|
[396] | 18 | void * i_rest; /* rest... */ |
---|
[394] | 19 | int fi_rest; |
---|
[373] | 20 | |
---|
[372] | 21 | /* |
---|
| 22 | char * ibuf; |
---|
| 23 | char * obuf; |
---|
[394] | 24 | int out_size; |
---|
[372] | 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 | |
---|
[371] | 42 | #endif |
---|
| 43 | |
---|
| 44 | //ll |
---|
Note: See
TracBrowser
for help on using the repository browser.