aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flbuf.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-03-21 04:36:07 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-03-21 04:36:07 +0000
commit5697ebe98e16f1438d6feba09cb075b6a0f2a653 (patch)
treecaf213e0ce7a992096d10246878fd56c7eda9793 /externals/grill/flext/source/flbuf.cpp
parent9056179fcd52793c16112471d1d7fed45722194c (diff)
""
svn path=/trunk/; revision=488
Diffstat (limited to 'externals/grill/flext/source/flbuf.cpp')
-rw-r--r--externals/grill/flext/source/flbuf.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}