Changeset 3320:d09133557dde in roaraudio


Ignore:
Timestamp:
02/03/10 15:50:22 (10 years ago)
Author:
phi
Branch:
default
Message:

moved the filterchain stuff out of the main header

Location:
include/libroardsp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroardsp/filterchain.h

    r3318 r3320  
    3838#include "libroardsp.h" 
    3939 
     40#define ROARDSP_MAX_FILTERS_PER_CHAIN 8 
     41 
     42// types: 
     43struct roardsp_filterchain { 
     44 int filters; 
     45 struct roardsp_filter * filter[ROARDSP_MAX_FILTERS_PER_CHAIN]; 
     46}; 
     47 
     48// funcs: 
     49int roardsp_fchain_init  (struct roardsp_filterchain * chain); 
     50int roardsp_fchain_uninit(struct roardsp_filterchain * chain); 
     51int roardsp_fchain_add   (struct roardsp_filterchain * chain, struct roardsp_filter * filter); 
     52int roardsp_fchain_calc  (struct roardsp_filterchain * chain, void * data, size_t len); 
     53int roardsp_fchain_reset (struct roardsp_filterchain * chain, int what); 
     54int roardsp_fchain_num   (struct roardsp_filterchain * chain); 
    4055 
    4156#endif 
  • include/libroardsp/libroardsp.h

    r3319 r3320  
    6666#endif 
    6767 
    68 // defines 
    69 #define ROARDSP_MAX_FILTERS_PER_CHAIN 8 
    70  
    71 // types: 
    72  
    73 struct roardsp_filterchain { 
    74  int filters; 
    75  struct roardsp_filter * filter[ROARDSP_MAX_FILTERS_PER_CHAIN]; 
    76 }; 
    77  
    78 // funcs: 
    79 int roardsp_fchain_init  (struct roardsp_filterchain * chain); 
    80 int roardsp_fchain_uninit(struct roardsp_filterchain * chain); 
    81 int roardsp_fchain_add   (struct roardsp_filterchain * chain, struct roardsp_filter * filter); 
    82 int roardsp_fchain_calc  (struct roardsp_filterchain * chain, void * data, size_t len); 
    83 int roardsp_fchain_reset (struct roardsp_filterchain * chain, int what); 
    84 int roardsp_fchain_num   (struct roardsp_filterchain * chain); 
    85  
    8668// codecs: 
    8769int roardsp_conv_alaw2pcm16 (int16_t * out, char * in, size_t len); 
Note: See TracChangeset for help on using the changeset viewer.