aboutsummaryrefslogtreecommitdiff
path: root/msd/src
diff options
context:
space:
mode:
authorN.N. <nimon@users.sourceforge.net>2010-09-09 16:11:37 +0000
committerN.N. <nimon@users.sourceforge.net>2010-09-09 16:11:37 +0000
commita93785f9fd501486cfd291fbc37dc2c7d361d517 (patch)
treec1954138b80f83467d4af7756c8ceef23634cdae /msd/src
parent523126a054dfdee92a8a406fe5bee1161cace43e (diff)
msd modification
svn path=/trunk/externals/nusmuk/; revision=14025
Diffstat (limited to 'msd/src')
-rw-r--r--msd/src/msd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/msd/src/msd.h b/msd/src/msd.h
index dac7533..baebba3 100644
--- a/msd/src/msd.h
+++ b/msd/src/msd.h
@@ -271,7 +271,7 @@ public:
t_int size_buf=buf->Frames();
t_float index_factor = indexf*(size_buf-1)/factor;
if (index_factor > size_buf - 1)
- return buf->Data()[(int)floor(indexf)];
+ return buf->Data()[(int)floor(index_factor)];
else if (index_factor < 0)
return buf->Data()[0];
else {