From f975c6d5ae03d0c0771ecbcd2205ef229bb227b0 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Fri, 10 Sep 2010 08:42:04 +0000 Subject: msd modification svn path=/trunk/externals/nusmuk/; revision=14030 --- msd/src/msd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'msd') 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 { -- cgit v1.2.1