diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2006-10-31 00:30:57 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2006-10-31 00:30:57 +0000 |
commit | c9f63273e395c7c8f5a2c112bddea09735b6518e (patch) | |
tree | 0bee4fe4ea3509fb834f61981afb37edbec20ed2 /externals/grill/flext/source/flext.cpp | |
parent | a0dd272b71c0212515cb4a834a109264448c02ae (diff) |
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
Diffstat (limited to 'externals/grill/flext/source/flext.cpp')
-rw-r--r-- | externals/grill/flext/source/flext.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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); |