aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flbuf.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-11-29 03:41:26 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-11-29 03:41:26 +0000
commitdf40bd59509b30e24353946e89e90bbf9790cafa (patch)
treeee9ab818a080be1963a4b37ac26bda4e48088983 /externals/grill/flext/source/flbuf.cpp
parentc94409c4b7a90e8c16f6e5b08f1b8522b7ee71fe (diff)
""
svn path=/trunk/; revision=1201
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 e9c02a00..46eb7f4f 100644
--- a/externals/grill/flext/source/flbuf.cpp
+++ b/externals/grill/flext/source/flbuf.cpp
@@ -194,7 +194,7 @@ void flext::buffer::Frames(int fr,bool keep,bool zero)
if(keep) {
// copy buffer data to tmp storage
- tmp = new t_sample[sz];
+ tmp = (t_sample *)NewAligned(sz*sizeof(t_sample));
if(tmp)
CopySamples(tmp,data,sz);
else
@@ -215,7 +215,7 @@ void flext::buffer::Frames(int fr,bool keep,bool zero)
if(tmp) {
// copy data back
CopySamples(data,tmp,sz);
- delete[] tmp;
+ FreeAligned(tmp);
if(zero && sz < fr) ZeroSamples(data+sz,fr-sz);
}
else