dol: initial dol commit
[jump.git] / dol / examples / example7 / src / filter.h
1 #ifndef FILTER_H
2 #define FILTER_H
3
4 #include <dol.h>
5 #include "global.h"
6
7 #define PORT_INA  "inA"
8 #define PORT_INB  "inB"
9 #define PORT_OUTA "outA"
10 #define PORT_OUTB "outB"
11
12 typedef struct _local_states
13 {
14   char id[10]; //will contain "filter_xx"
15   int first_invocation;
16   int process_index;
17   float inA, inB, out, filter_coefficient, zero;
18 } Filter_State;
19
20 void filter_init(DOLProcess *);
21 int filter_fire(DOLProcess *);
22
23 #endif