source: roaraudio/roard/include/codecfilter_speex.h @ 394:c0c41ad9d2ed

Last change on this file since 394:c0c41ad9d2ed was 394:c0c41ad9d2ed, checked in by phi, 16 years ago

added ROAR_SPEEX_MAX_CC and buffers for cf speex

File size: 1.0 KB
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
10struct codecfilter_speex_inst {
11 void * encoder;
12 void * decoder;
13 SpeexBits bits;
14 struct roar_stream_server * stream;
15 int frame_size;
16 int16_t  * cd; /* current data */
17 char       cc[ROAR_SPEEX_MAX_CC]; /* buffer for read() and write() */
18 int16_t  * 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
33int cf_speex_open(CODECFILTER_USERDATA_T * inst, int codec,
34                                            struct roar_stream_server * info,
35                                            struct roar_codecfilter   * filter);
36
37int cf_speex_close(CODECFILTER_USERDATA_T   inst);
38
39int cf_speex_read(CODECFILTER_USERDATA_T   inst, char * buf, int len);
40int 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.