aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/dyn
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2004-06-21 14:08:57 +0000
committerThomas Grill <xovo@users.sourceforge.net>2004-06-21 14:08:57 +0000
commite728a5bc3db296b4b67c2d3e5b56558c42c566a8 (patch)
tree180656eeb13352bc2cee7fb759e2ff74332069d2 /externals/grill/dyn
parentcefab503b7db648244a4244ef255d15609e2c205 (diff)
""
svn path=/trunk/; revision=1826
Diffstat (limited to 'externals/grill/dyn')
-rw-r--r--externals/grill/dyn/dyn.vcproj2
-rw-r--r--externals/grill/dyn/readme.txt3
-rw-r--r--externals/grill/dyn/src/main.cpp19
3 files changed, 13 insertions, 11 deletions
diff --git a/externals/grill/dyn/dyn.vcproj b/externals/grill/dyn/dyn.vcproj
index 712a1357..906f9163 100644
--- a/externals/grill/dyn/dyn.vcproj
+++ b/externals/grill/dyn/dyn.vcproj
@@ -42,7 +42,7 @@
<Tool
Name="VCLinkerTool"
AdditionalDependencies="pd.lib flext_d-pdwin.lib pthreadVC.lib"
- OutputFile="pd-msvc/d/dyn~.dll"
+ OutputFile="$(outdir)/dyn~.dll"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
AdditionalLibraryDirectories="c:\programme\audio\pd/bin,..\flext\pd-msvc"
diff --git a/externals/grill/dyn/readme.txt b/externals/grill/dyn/readme.txt
index 99dd5efd..116e27d3 100644
--- a/externals/grill/dyn/readme.txt
+++ b/externals/grill/dyn/readme.txt
@@ -39,6 +39,9 @@ BUGS:
CHANGES:
--------
+0.1.1:
+- using aligned memory
+
0.1.0:
- first release: PD 0.37 supports all necessary functionality
- cleaner message-based object creation
diff --git a/externals/grill/dyn/src/main.cpp b/externals/grill/dyn/src/main.cpp
index 38897c5d..4447d7a4 100644
--- a/externals/grill/dyn/src/main.cpp
+++ b/externals/grill/dyn/src/main.cpp
@@ -2,7 +2,7 @@
dyn~ - dynamical object management for PD
-Copyright (c) 2003 Thomas Grill (xovo@gmx.net)
+Copyright (c)2003-2004 Thomas Grill (xovo@gmx.net)
For information on usage and redistribution, and for a DISCLAIMER OF ALL
WARRANTIES, see the file, "license.txt," in this distribution.
@@ -13,11 +13,11 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#include <flext.h>
-#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 405)
-#error You need at least flext version 0.4.5
+#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406)
+#error You need at least flext version 0.4.6
#endif
-#define DYN_VERSION "0.1.0"
+#define DYN_VERSION "0.1.1pre"
#if FLEXT_SYS != FLEXT_SYS_PD
@@ -96,7 +96,7 @@ protected:
void init(dyn *t);
- static void px_exit(proxy *px) { if(px->buf) delete[] px->buf; }
+ static void px_exit(proxy *px) { if(px->buf) FreeAligned(px->buf); }
};
// proxy for inbound messages
@@ -685,14 +685,13 @@ void dyn::proxy::init(dyn *t)
defsig = 0;
}
-
void dyn::proxyin::dsp(proxyin *x,t_signal **sp)
{
int n = sp[0]->s_n;
if(n != x->n) {
// if vector size has changed make new buffer
- if(x->buf) delete[] x->buf;
- x->buf = new t_sample[x->n = n];
+ if(x->buf) FreeAligned(x->buf);
+ x->buf = (t_sample *)NewAligned(sizeof(t_sample)*(x->n = n));
}
dsp_add_copy(x->buf,sp[0]->s_vec,n);
}
@@ -711,8 +710,8 @@ void dyn::proxyout::dsp(proxyout *x,t_signal **sp)
int n = sp[0]->s_n;
if(n != x->n) {
// if vector size has changed make new buffer
- if(x->buf) delete[] x->buf;
- x->buf = new t_sample[x->n = n];
+ if(x->buf) FreeAligned(x->buf);
+ x->buf = (t_sample *)NewAligned(sizeof(t_sample)*(x->n = n));
}
dsp_add_copy(sp[0]->s_vec,x->buf,n);
}