From c9f63273e395c7c8f5a2c112bddea09735b6518e Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Tue, 31 Oct 2006 00:30:57 +0000 Subject: PD: possibility to create DSP objects without main DSP inlet (use FLEXT_DSP0_NEW or similar) fixed buggy memory deallocation for AtomListStatic svn path=/trunk/; revision=6196 --- externals/grill/flext/source/flext.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'externals/grill/flext/source/flext.cpp') diff --git a/externals/grill/flext/source/flext.cpp b/externals/grill/flext/source/flext.cpp index afb7cdff..4a8e65e2 100644 --- a/externals/grill/flext/source/flext.cpp +++ b/externals/grill/flext/source/flext.cpp @@ -140,7 +140,7 @@ void flext_base::Exit() } -void flext_base::AddMessageMethods(t_class *c,bool dsp) +void flext_base::AddMessageMethods(t_class *c,bool dsp,bool dspin) { add_loadbang(c,cb_loadbang); @@ -159,7 +159,8 @@ void flext_base::AddMessageMethods(t_class *c,bool dsp) add_dsp(c,cb_dsp); dsp_initclass(); #elif FLEXT_SYS == FLEXT_SYS_PD - CLASS_MAINSIGNALIN(c,flext_hdr,defsig); // float messages going into the left inlet are converted to signal + if(dspin) + CLASS_MAINSIGNALIN(c,flext_hdr,defsig); // float messages going into the left inlet are converted to signal add_dsp(c,cb_dsp); #else #error Platform not supported! @@ -178,10 +179,9 @@ void flext_base::Setup(t_classid id) #if FLEXT_SYS == FLEXT_SYS_MAX if(!IsLib(id)) #endif - AddMessageMethods(c,IsDSP(id)); + AddMessageMethods(c,IsDSP(id),HasDSPIn(id)); if(HasAttributes(id)) { -// if(process_attributes) { AddMethod(id,0,"getattributes",cb_ListAttrib); AddMethod(id,0,"getmethods",cb_ListMethods); -- cgit v1.2.1