aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/fldsp.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-01-08 04:58:31 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-01-08 04:58:31 +0000
commit0709ac9fabf4184675df1c3d8e205a2790adaadb (patch)
tree828916c3a4f0cde9641a4ed40961f5e7d56966be /externals/grill/flext/source/fldsp.cpp
parentdad0b0542c08240f4431a34d46e6676461e0d83b (diff)
minor updates
adapted the queue stuff to work with the new set_callback functionality reconsidered flext::buffer:Update added object construction and destruction flags updated autoconf system small updates better templates, some minor changes update for linux cleanups svn path=/trunk/; revision=2476
Diffstat (limited to 'externals/grill/flext/source/fldsp.cpp')
-rw-r--r--externals/grill/flext/source/fldsp.cpp25
1 files changed, 3 insertions, 22 deletions
diff --git a/externals/grill/flext/source/fldsp.cpp b/externals/grill/flext/source/fldsp.cpp
index 2384c5fe..f27ae032 100644
--- a/externals/grill/flext/source/fldsp.cpp
+++ b/externals/grill/flext/source/fldsp.cpp
@@ -48,17 +48,7 @@ flext_dsp::FLEXT_CLASSDEF(flext_dsp)():
#else
srate(sys_getsr()),blksz(sys_getblksize()),
#endif
-#if FLEXT_SYS == FLEXT_SYS_PD
- chnsin(sys_get_inchannels()),
- chnsout(sys_get_outchannels()),
-#elif FLEXT_SYS == FLEXT_SYS_MAX
- chnsin(0),chnsout(0),
-#elif FLEXT_SYS == FLEXT_SYS_JMAX
- #pragma message("not implemented")
chnsin(0),chnsout(0),
-#else
-#error
-#endif
#if FLEXT_SYS != FLEXT_SYS_MAX
dspon(true),
#endif
@@ -76,6 +66,9 @@ flext_dsp::~FLEXT_CLASSDEF(flext_dsp)()
fts_dsp_object_delete(thisHdr());
#endif
+ if(invecs) delete[] invecs;
+ if(outvecs) delete[] outvecs;
+
/*
#if FLEXT_SYS == FLEXT_SYS_MAX
// switch off dsp as the dsp function might get called afterwards (?!)
@@ -138,18 +131,6 @@ void flext_dsp::cb_dsp(t_class *c,t_signal **sp)
obj->blksz = sp[0]->s_n; // is this guaranteed to be the same as sys_getblksize() ?
#endif
-/*
-#if FLEXT_SYS == FLEXT_SYS_PD
- obj->chnsin = sys_get_inchannels();
- obj->chnsout = sys_get_outchannels();
-#elif FLEXT_SYS == FLEXT_SYS_MAX
- obj->chnsin = obj->chnsout = sys_getch();
-#elif FLEXT_SYS == FLEXT_SYS_JMAX
- #pragma message ("How to query the channels?")
-#else
-#error
-#endif
-*/
// store in and out signal vectors
int i;
int in = obj->chnsin = obj->CntInSig();