6 extern t_class
*sigdelwrite_class
;
9 typedef struct delwritectl
16 typedef struct _sigdelwrite
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 */
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");
48 extern t_class
*sigdelwrite_class
;
51 typedef struct delwritectl
58 typedef struct _sigdelwrite
62 t_delwritectl x_cspace
;
63 int x_sortno
; /* DSP sort number at which this was last put on chain */
64 int x_rsortno
; /* DSP sort # for first delread or write in chain */
65 int x_vecsize
; /* vector size for delread~ to use */
72 /* routine to check that all delwrites/delreads/vds have same vecsize */
73 static void sigdelwrite_checkvecsize(t_sigdelwrite
*x
, int vecsize
)
75 if (x
->x_rsortno
!= ugen_getsortno())
77 x
->x_vecsize
= vecsize
;
78 x
->x_rsortno
= ugen_getsortno();
80 else if (vecsize
!= x
->x_vecsize
)
81 pd_error(x
, "delread/delwrite/vd vector size mismatch");