aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorN.N. <nimon@users.sourceforge.net>2010-09-10 08:42:04 +0000
committerN.N. <nimon@users.sourceforge.net>2010-09-10 08:42:04 +0000
commitf975c6d5ae03d0c0771ecbcd2205ef229bb227b0 (patch)
tree883de09a89bbca0ec02fc580691f9e4c094f9bff
parenta93785f9fd501486cfd291fbc37dc2c7d361d517 (diff)
msd modification
svn path=/trunk/externals/nusmuk/; revision=14030
-rw-r--r--msd/src/msd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/msd/src/msd.h b/msd/src/msd.h
index baebba3..27c1c66 100644
--- a/msd/src/msd.h
+++ b/msd/src/msd.h
@@ -268,10 +268,10 @@ public:
}
inline t_float interp_buf(t_float indexf, flext::buffer *buf, t_float factor) {
- t_int size_buf=buf->Frames();
+ t_float size_buf=buf->Frames();
t_float index_factor = indexf*(size_buf-1)/factor;
if (index_factor > size_buf - 1)
- return buf->Data()[(int)floor(index_factor)];
+ return buf->Data()[(int)size_buf - 1];
else if (index_factor < 0)
return buf->Data()[0];
else {