From 739722ebea4f44e25c51526311c7c248208b5702 Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Tue, 5 May 2009 22:00:54 +0000 Subject: bug fixes for pd 0.42-5 svn path=/trunk/; revision=11236 --- pd/extra/lrshift~/lrshift~.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pd/extra/lrshift~/lrshift~.c') diff --git a/pd/extra/lrshift~/lrshift~.c b/pd/extra/lrshift~/lrshift~.c index ba1d5eeb..166facc1 100644 --- a/pd/extra/lrshift~/lrshift~.c +++ b/pd/extra/lrshift~/lrshift~.c @@ -8,6 +8,7 @@ typedef struct _lrshift_tilde { t_object x_obj; int x_n; + float x_f; } t_lrshift_tilde; static t_int *leftshift_perform(t_int *w) @@ -59,6 +60,7 @@ static void *lrshift_tilde_new(t_floatarg f) { t_lrshift_tilde *x = (t_lrshift_tilde *)pd_new(lrshift_tilde_class); x->x_n = f; + x->x_f = 0; outlet_new(&x->x_obj, gensym("signal")); return (x); } @@ -68,7 +70,7 @@ void lrshift_tilde_setup(void) lrshift_tilde_class = class_new(gensym("lrshift~"), (t_newmethod)lrshift_tilde_new, 0, sizeof(t_lrshift_tilde), 0, A_DEFFLOAT, 0); - class_addmethod(lrshift_tilde_class, nullfn, gensym("signal"), 0); + CLASS_MAINSIGNALIN(lrshift_tilde_class, t_lrshift_tilde, x_f); class_addmethod(lrshift_tilde_class, (t_method)lrshift_tilde_dsp, gensym("dsp"), 0); } -- cgit v1.2.1