aboutsummaryrefslogtreecommitdiff
path: root/pd/src/d_delay.c
diff options
context:
space:
mode:
authorGuenter Geiger <ggeiger@users.sourceforge.net>2004-02-02 11:28:02 +0000
committerGuenter Geiger <ggeiger@users.sourceforge.net>2004-02-02 11:28:02 +0000
commitae6b5d89ea93b95c2990895077cf5e8f0bba9ad9 (patch)
tree1e7570f11ac688e94342968e90301c4684e61193 /pd/src/d_delay.c
parentf26399eba6ee6ce9eb7bae9a4b60a90dc2ebca94 (diff)
This commit was generated by cvs2svn to compensate for changes in r1301,
which included commits to RCS files with non-trunk default branches. svn path=/trunk/; revision=1302
Diffstat (limited to 'pd/src/d_delay.c')
-rw-r--r--pd/src/d_delay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pd/src/d_delay.c b/pd/src/d_delay.c
index 1d4defcf..920b28e5 100644
--- a/pd/src/d_delay.c
+++ b/pd/src/d_delay.c
@@ -247,7 +247,7 @@ static t_int *sigvd_perform(t_int *w)
int nsamps = ctl->c_n;
float limit = nsamps - n - 1;
- float fn = n-4;
+ float fn = n-1;
float *vp = ctl->c_vec, *bp, *wp = vp + ctl->c_phase;
float zerodel = x->x_zerodel;
while (n--)
@@ -261,7 +261,7 @@ static t_int *sigvd_perform(t_int *w)
fn = fn - 1.0f;
idelsamps = delsamps;
frac = delsamps - (float)idelsamps;
- bp = wp - (idelsamps + 3);
+ bp = wp - idelsamps;
if (bp < vp + 4) bp += nsamps;
d = bp[-3];
c = bp[-2];