source: roaraudio/roard/include/codecfilter_speex.h @ 391:ab42dd0763ef

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

added a bit mor struct to the cf speex

File size: 918 bytes
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
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
29int cf_speex_open(CODECFILTER_USERDATA_T * inst, int codec,
30                                            struct roar_stream_server * info,
31                                            struct roar_codecfilter   * filter);
32
33int cf_speex_close(CODECFILTER_USERDATA_T   inst);
34
35int cf_speex_read(CODECFILTER_USERDATA_T   inst, char * buf, int len);
36int cf_speex_write(CODECFILTER_USERDATA_T   inst, char * buf, int len);
37
38#endif
39
40//ll
Note: See TracBrowser for help on using the repository browser.