From 0ffc27caf523666ea947181c5808b428afa91818 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Wed, 17 Sep 2003 20:51:43 +0000 Subject: Fixed some crashes svn path=/trunk/externals/unauthorized/; revision=1001 --- scratcher~/scratcher~.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scratcher~') diff --git a/scratcher~/scratcher~.c b/scratcher~/scratcher~.c index 0110776..768725a 100644 --- a/scratcher~/scratcher~.c +++ b/scratcher~/scratcher~.c @@ -545,14 +545,14 @@ static t_int *scratcher_perform(t_int *w) } } // set outputs - // if ( x->x_play) { + if ( x->x_play) { *out = *(x->x_sdata+(int)x->x_readpos); x->x_readpos+=x->x_readspeed; if ( x->x_readpos < 0 ) x->x_readpos = x->x_size-1; if ( x->x_readpos >= x->x_size ) x->x_readpos = 0; - // } else { - // *out=0.0; - // } + } else { + *out=0.0; + } in++;out++; } -- cgit v1.2.1