home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_10_05
/
1005052a
< prev
next >
Wrap
Text File
|
1992-03-11
|
514b
|
17 lines
Listing 3. CircularBuffer and Filter structures
typedef struct {
int index, /* index for next filter output */
mask; /* masking value (length - 1) */
double *buffer;
} CircularBuffer;
typedef struct {
double *coef; /* Filter coefficients */
int order; /* Number of coefficients */
CircularBuffer *y; /* Previous outputs */
} Filter