Ignore:
Timestamp:
10/26/09 18:23:34 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

start with Speex Prep filter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroardsp/libroardsp.h

    r2989 r2992  
    2929 
    3030__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 
    3139 
    3240#include "midi.h" 
     
    7482// filter CTLs: 
    7583 
    76 #define ROARDSP_FCTL_FREQ             1 
     84#define ROARDSP_FCTL_FREQ             1 /* float */ 
    7785#define ROARDSP_FCTL_TIME             2 
    7886#define ROARDSP_FCTL_MUL              3 
     
    8391#define ROARDSP_FCTL_Q                8 
    8492#define ROARDSP_FCTL_MODE             9 
    85 #define ROARDSP_FCTL_PACKET_SIZE     10 
     93#define ROARDSP_FCTL_PACKET_SIZE     10 /* size_t */ 
    8694 
    8795// consts for filter flags: 
     
    155163 
    156164struct roardsp_speex_prep { 
     165#ifdef _SPEEX_TYPES_H 
     166 SpeexPreprocessState *preprocess; 
     167 int frame_size; 
     168#else 
    157169 char dummy[8]; 
     170#endif 
    158171}; 
    159172 
     
    229242int roardsp_swap_reset  (struct roardsp_filter * filter, int what); 
    230243 
     244#ifdef _SPEEX_TYPES_H 
     245int roardsp_speex_prep_init   (struct roardsp_filter * filter, struct roar_stream * stream, int id); 
     246int roardsp_speex_prep_uninit (struct roardsp_filter * filter); 
     247int roardsp_speex_prep_ctl    (struct roardsp_filter * filter, int cmd, void * data); 
     248int roardsp_speex_prep_reset  (struct roardsp_filter * filter, int what); 
     249#endif 
     250 
    231251// codecs: 
    232252int roardsp_conv_alaw2pcm16 (int16_t * out, char * in, size_t len); 
Note: See TracChangeset for help on using the changeset viewer.