source: roaraudio/roard/codecfilter_speex.c @ 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: 1001 bytes
Line 
1//codecfilter_speex.c:
2
3#include "roard.h"
4#ifdef ROAR_HAVE_LIBSPEEX
5
6int cf_speex_open(CODECFILTER_USERDATA_T * inst, int codec,
7                                            struct roar_stream_server * info,
8                                            struct roar_codecfilter   * filter) {
9 struct codecfilter_speex_inst * self = malloc(sizeof(struct codecfilter_speex_inst));
10
11 *inst = NULL;
12
13 if (!self)
14  return -1;
15
16 *inst = (void*) self;
17
18 return 0;
19}
20
21int cf_speex_close(CODECFILTER_USERDATA_T   inst) {
22 struct codecfilter_speex_inst * self = (struct codecfilter_speex_inst *) inst;
23
24 if (!self)
25  return -1;
26
27 free((void*)self);
28
29 return 0;
30}
31
32int cf_speex_read(CODECFILTER_USERDATA_T   inst, char * buf, int len) {
33 struct codecfilter_speex_inst * self = (struct codecfilter_speex_inst *) inst;
34
35 return -1;
36}
37int cf_speex_write(CODECFILTER_USERDATA_T   inst, char * buf, int len) {
38 struct codecfilter_speex_inst * self = (struct codecfilter_speex_inst *) inst;
39
40 return -1;
41}
42
43#endif
44
45//ll
Note: See TracBrowser for help on using the repository browser.