Changeset 391:ab42dd0763ef in roaraudio
- Timestamp:
- 08/06/08 18:15:08 (16 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/codecfilter_speex.c
r373 r391 7 7 struct roar_stream_server * info, 8 8 struct roar_codecfilter * filter) { 9 struct codecfilter_speex_inst * self = malloc(sizeof(struct codecfilter_speex_inst)); 10 9 11 *inst = NULL; 10 return -1; 12 13 if (!self) 14 return -1; 15 16 *inst = (void*) self; 17 18 return 0; 11 19 } 12 20 13 21 int cf_speex_close(CODECFILTER_USERDATA_T inst) { 14 return -1; 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; 15 30 } 16 31 17 32 int cf_speex_read(CODECFILTER_USERDATA_T inst, char * buf, int len) { 33 struct codecfilter_speex_inst * self = (struct codecfilter_speex_inst *) inst; 34 18 35 return -1; 19 36 } 20 37 int cf_speex_write(CODECFILTER_USERDATA_T inst, char * buf, int len) { 38 struct codecfilter_speex_inst * self = (struct codecfilter_speex_inst *) inst; 39 21 40 return -1; 22 41 } -
roard/include/codecfilter_speex.h
r373 r391 6 6 #include <roaraudio.h> 7 7 #include <speex/speex.h> 8 #include <speex/speex_stereo.h> 8 9 9 10 struct codecfilter_speex_inst { … … 11 12 void * decoder; 12 13 SpeexBits bits; 14 struct roar_stream_server * stream; 15 int frame_size; 13 16 14 17 /* 15 struct roar_stream_server * stream;16 CELTMode * mode;17 CELTEncoder * encoder;18 CELTDecoder * decoder;19 int frame_size;20 int lookahead;21 18 int out_size; 22 19 char * ibuf;
Note: See TracChangeset
for help on using the changeset viewer.