Fix pdbox makefile to actually take part in dependency generation
[kugel-rb.git] / apps / plugins / pdbox / PDa / intern / delay.h
blob3b86dee53de7d8e3ede57e665fc914a93952fbee
2 #ifndef __DELAY_H__
3 #define __DELAY_H__
6 extern t_class *sigdelwrite_class;
9 typedef struct delwritectl
11 int c_n;
12 t_sample *c_vec;
13 int c_phase;
14 } t_delwritectl;
16 typedef struct _sigdelwrite
18 t_object x_obj;
19 t_symbol *x_sym;
20 t_delwritectl x_cspace;
21 int x_sortno; /* DSP sort number at which this was last put on chain */
22 int x_rsortno; /* DSP sort # for first delread or write in chain */
23 int x_vecsize; /* vector size for delread~ to use */
24 float x_f;
25 } t_sigdelwrite;
27 #define XTRASAMPS 4
28 #define SAMPBLK 4
30 /* routine to check that all delwrites/delreads/vds have same vecsize */
31 static void sigdelwrite_checkvecsize(t_sigdelwrite *x, int vecsize)
33 if (x->x_rsortno != ugen_getsortno())
35 x->x_vecsize = vecsize;
36 x->x_rsortno = ugen_getsortno();
38 else if (vecsize != x->x_vecsize)
39 pd_error(x, "delread/delwrite/vd vector size mismatch");
42 #endif