diff options
author | N.N. <nimon@users.sourceforge.net> | 2010-09-09 16:11:37 +0000 |
---|---|---|
committer | N.N. <nimon@users.sourceforge.net> | 2010-09-09 16:11:37 +0000 |
commit | a93785f9fd501486cfd291fbc37dc2c7d361d517 (patch) | |
tree | c1954138b80f83467d4af7756c8ceef23634cdae /msd | |
parent | 523126a054dfdee92a8a406fe5bee1161cace43e (diff) |
msd modification
svn path=/trunk/externals/nusmuk/; revision=14025
Diffstat (limited to 'msd')
-rw-r--r-- | msd/src/msd.h | 2 |
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 { |