diff options
Diffstat (limited to 'msd/src')
-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 { |