aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-03-29 03:36:07 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-03-29 03:36:07 +0000
commitd8e675b0fcfa8a8b8f1bd3561172607c30f48574 (patch)
tree997b134e72ad545a076d74cd2f9cd0070bccc0c0 /externals/grill/flext
parent4386f66245b06858825f0ba6a1a8099d4d1e7c48 (diff)
""
svn path=/trunk/; revision=507
Diffstat (limited to 'externals/grill/flext')
-rw-r--r--externals/grill/flext/flext.cwbin506677 -> 506677 bytes
-rw-r--r--externals/grill/flext/source/flbuf.cpp4
2 files changed, 2 insertions, 2 deletions
diff --git a/externals/grill/flext/flext.cw b/externals/grill/flext/flext.cw
index 288a0683..2e83c546 100644
--- a/externals/grill/flext/flext.cw
+++ b/externals/grill/flext/flext.cw
Binary files differ
diff --git a/externals/grill/flext/source/flbuf.cpp b/externals/grill/flext/source/flbuf.cpp
index 6c6edb2e..5d004e4d 100644
--- a/externals/grill/flext/source/flbuf.cpp
+++ b/externals/grill/flext/source/flbuf.cpp
@@ -199,8 +199,8 @@ void flext::buffer::Frames(int fr,bool keep,bool zero)
t_atom msg;
_buffer *buf = (_buffer *)sym->s_thing;
// b_msr reflects buffer sample rate... is this what we want?
- // Max bug: adding small value 0.001 to get right sample count
- float ms = fr/buf->b_msr+0.001;
+ // Max bug: adding half a sample to prevent roundoff errors....
+ float ms = (fr+0.5)/buf->b_msr;
SetFloat(msg,ms);
::typedmess((object *)buf,gensym("size"),1,&msg);