diff options
author | N.N. <sevyves@users.sourceforge.net> | 2003-09-17 20:51:43 +0000 |
---|---|---|
committer | N.N. <sevyves@users.sourceforge.net> | 2003-09-17 20:51:43 +0000 |
commit | 0ffc27caf523666ea947181c5808b428afa91818 (patch) | |
tree | a84ed988fdffe108254ffc3263672bc172deedff | |
parent | a431a46da7eefba0c9bc45842a4cd63769eab900 (diff) |
Fixed some crashes
svn path=/trunk/externals/unauthorized/; revision=1001
-rw-r--r-- | scratcher~/scratcher~.c | 8 |
1 files changed, 4 insertions, 4 deletions
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++; } |