aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext
diff options
context:
space:
mode:
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);