Changeset 3003:9d0935291fca in roaraudio for libroardsp
- Timestamp:
- 10/27/09 13:07:18 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroardsp/filter_speex_prep.c
r2998 r3003 26 26 27 27 #ifdef _SPEEX_TYPES_H 28 29 #if defined(ROAR_HAVE_LIBSPEEX) && !defined(ROAR_HAVE_LIBSPEEXDSP) 30 #define _SPEEX_API_OLD 31 #elif defined(ROAR_HAVE_LIBSPEEX) && defined(ROAR_HAVE_LIBSPEEXDSP) 32 #define _SPEEX_API_NEW 33 #endif 34 28 35 // TODO: check parameters we allready know: 29 36 int roardsp_speex_prep_init (struct roardsp_filter * filter, struct roar_stream * stream, int id) { … … 58 65 59 66 int roardsp_speex_prep_calc161(struct roardsp_filter * filter, void * data, size_t samples) { 67 struct roardsp_speex_prep * self = filter->inst; 68 69 if ( self->preprocess == NULL ) 70 return -1; 71 72 if ( samples != self->frame_size ) 73 return -1; 74 75 #ifdef _SPEEX_API_OLD 76 speex_preprocess(self->preprocess, data, NULL); 77 #elif defined(_SPEEX_API_NEW) 78 speex_preprocess_run(self->preprocess, data); 79 #else 60 80 return -1; 81 #endif 82 83 return 0; 61 84 } 62 85
Note: See TracChangeset
for help on using the changeset viewer.