From 0709ac9fabf4184675df1c3d8e205a2790adaadb Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Sat, 8 Jan 2005 04:58:31 +0000 Subject: 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 --- externals/grill/flext/source/fldsp.cpp | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) (limited to 'externals/grill/flext/source/fldsp.cpp') 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(); -- cgit v1.2.1