Changeset 2992:ff4cbda31297 in roaraudio for include/libroardsp/libroardsp.h
- Timestamp:
- 10/26/09 18:23:34 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroardsp/libroardsp.h
r2989 r2992 29 29 30 30 __BEGIN_DECLS 31 32 // enable Speex preprocessing and better type handling if speex > 1.1.8 33 #ifdef ROAR_HAVE_LIBSPEEX 34 #include <speex/speex.h> 35 #ifdef _SPEEX_TYPES_H 36 #include <speex/speex_preprocess.h> 37 #endif 38 #endif 31 39 32 40 #include "midi.h" … … 74 82 // filter CTLs: 75 83 76 #define ROARDSP_FCTL_FREQ 1 84 #define ROARDSP_FCTL_FREQ 1 /* float */ 77 85 #define ROARDSP_FCTL_TIME 2 78 86 #define ROARDSP_FCTL_MUL 3 … … 83 91 #define ROARDSP_FCTL_Q 8 84 92 #define ROARDSP_FCTL_MODE 9 85 #define ROARDSP_FCTL_PACKET_SIZE 10 93 #define ROARDSP_FCTL_PACKET_SIZE 10 /* size_t */ 86 94 87 95 // consts for filter flags: … … 155 163 156 164 struct roardsp_speex_prep { 165 #ifdef _SPEEX_TYPES_H 166 SpeexPreprocessState *preprocess; 167 int frame_size; 168 #else 157 169 char dummy[8]; 170 #endif 158 171 }; 159 172 … … 229 242 int roardsp_swap_reset (struct roardsp_filter * filter, int what); 230 243 244 #ifdef _SPEEX_TYPES_H 245 int roardsp_speex_prep_init (struct roardsp_filter * filter, struct roar_stream * stream, int id); 246 int roardsp_speex_prep_uninit (struct roardsp_filter * filter); 247 int roardsp_speex_prep_ctl (struct roardsp_filter * filter, int cmd, void * data); 248 int roardsp_speex_prep_reset (struct roardsp_filter * filter, int what); 249 #endif 250 231 251 // codecs: 232 252 int roardsp_conv_alaw2pcm16 (int16_t * out, char * in, size_t len);
Note: See TracChangeset
for help on using the changeset viewer.