Changeset 659:ab1e80d9f873 in roaraudio


Ignore:
Timestamp:
08/26/08 17:02:54 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added a lot basic proto types

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroardsp/libroardsp.h

    r652 r659  
    66#include <roaraudio.h> 
    77 
     8// defines 
     9#define ROARDSP_MAX_FILTERS_PER_CHAIN 8 
     10 
     11// types: 
     12 
     13struct roardsp_filter { 
     14 int    channels; 
     15 int    bits; 
     16 void * inst; 
     17 int (*calc  )(struct roardsp_filter * filter, void * data, size_t samples); 
     18 int (*uninit)(struct roardsp_filter * filter); 
     19}; 
     20 
     21struct roardsp_filterchain { 
     22 int filters; 
     23 struct roardsp_filter * filter[ROARDSP_MAX_FILTERS_PER_CHAIN]; 
     24}; 
     25 
     26struct roardsp_lowp { 
     27 uint32_t freq; // in mHz (0Hz..4MHz) 
     28 uint16_t a, b; 
     29 int32_t  old[ROAR_MAX_CHANNELS]; 
     30}; 
     31 
     32// funcs: 
     33int roardsp_filter_init  (struct roardsp_filter * filter, struct roar_stream * stream, int id); 
     34int roardsp_filter_uninit(struct roardsp_filter * filter); 
     35int roardsp_filter_calc  (struct roardsp_filter * filter, void * data, size_t len); 
     36 
     37int roardsp_fchain_init  (struct roardsp_filterchain * chain); 
     38int roardsp_fchain_uninit(struct roardsp_filterchain * chain); 
     39int roardsp_fchain_add   (struct roardsp_filterchain * chain, struct roardsp_filter * filter); 
     40int roardsp_fchain_calc  (struct roardsp_filterchain * chain, void * data, size_t len); 
     41 
    842#endif 
    943 
Note: See TracChangeset for help on using the changeset viewer.