From 5697ebe98e16f1438d6feba09cb075b6a0f2a653 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Fri, 21 Mar 2003 04:36:07 +0000 Subject: "" svn path=/trunk/; revision=488 --- externals/grill/flext/flext.cw | Bin 506677 -> 506677 bytes externals/grill/flext/readme.txt | 1 + externals/grill/flext/source/flbuf.cpp | 4 ++-- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'externals/grill/flext') diff --git a/externals/grill/flext/flext.cw b/externals/grill/flext/flext.cw index d331bede..1f46feea 100644 Binary files a/externals/grill/flext/flext.cw and b/externals/grill/flext/flext.cw differ diff --git a/externals/grill/flext/readme.txt b/externals/grill/flext/readme.txt index bc043c33..388945fc 100644 --- a/externals/grill/flext/readme.txt +++ b/externals/grill/flext/readme.txt @@ -121,6 +121,7 @@ Version history: - fixed race condition when using LaunchThread in a setup function (now waiting for thread helper to initialize) - added flext::Forward function to send messages to bound symbols - added "zero" flag to flext::buffer resize operation +- fixed bug for Max/MSP buffer resize with preservation of contents 0.4.2: - started port for jMax diff --git a/externals/grill/flext/source/flbuf.cpp b/externals/grill/flext/source/flbuf.cpp index f7672b75..6c6edb2e 100644 --- a/externals/grill/flext/source/flbuf.cpp +++ b/externals/grill/flext/source/flbuf.cpp @@ -191,7 +191,7 @@ void flext::buffer::Frames(int fr,bool keep,bool zero) // copy buffer data to tmp storage tmp = new t_sample[sz]; if(tmp) - CopySamples(data,tmp,sz); + CopySamples(tmp,data,sz); else error("flext::buffer - not enough memory for keeping buffer~ contents"); } @@ -209,7 +209,7 @@ void flext::buffer::Frames(int fr,bool keep,bool zero) if(tmp) { // copy data back - CopySamples(tmp,data,sz); + CopySamples(data,tmp,sz); delete[] tmp; if(zero && sz < fr) ZeroSamples(data+sz,fr-sz); } -- cgit v1.2.1