From 1d529942fe72feff85c24a03b4d8b844c4e6bf3f Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Tue, 4 Feb 2003 04:32:11 +0000 Subject: "" svn path=/trunk/; revision=381 --- externals/grill/flext/readme.txt | 1 + externals/grill/flext/source/fldsp.cpp | 6 ++++++ externals/grill/flext/source/flout.cpp | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) (limited to 'externals/grill') diff --git a/externals/grill/flext/readme.txt b/externals/grill/flext/readme.txt index 5eb82d7c..8cbf4049 100644 --- a/externals/grill/flext/readme.txt +++ b/externals/grill/flext/readme.txt @@ -119,6 +119,7 @@ Version history: - MaxMSP: added assist string for attribute outlets - added new POSIX for ThrCond::TimedWait (but still have to find out when to enable it....) - added CopySamples and ZeroSamples +- fixed bug for DSP object with zero signal inlets in PD 0.4.1: - full port for Max@OSX diff --git a/externals/grill/flext/source/fldsp.cpp b/externals/grill/flext/source/fldsp.cpp index f6270261..64051008 100644 --- a/externals/grill/flext/source/fldsp.cpp +++ b/externals/grill/flext/source/fldsp.cpp @@ -134,6 +134,12 @@ void flext_dsp::cb_dsp(t_class *c,t_signal **sp) // store in and out signal vectors int i,in = obj->CntInSig(),out = obj->CntOutSig(); + +#if FLEXT_SYS == FLEXT_SYS_PD + // min. 1 input channel! (CLASS_MAININLET in pd...) + if(!in) in = 1; +#endif + if(obj->invecs) delete[] obj->invecs; obj->invecs = new t_signalvec[in]; for(i = 0; i < in; ++i) diff --git a/externals/grill/flext/source/flout.cpp b/externals/grill/flext/source/flout.cpp index 802d299d..75da3023 100644 --- a/externals/grill/flext/source/flout.cpp +++ b/externals/grill/flext/source/flout.cpp @@ -174,14 +174,14 @@ bool flext_base::InitInlets() for(cnt = 0,ix = incnt-1; ix >= insigs; --ix,++cnt) { if(ix == 0) { if(list[ix] != xlet::tp_any) { - error("%s: Leftmost inlet must be of type signal or default",thisName()); + error("%s: Leftmost inlet must be of type signal or anything",thisName()); ok = false; } } else { switch(list[ix]) { case xlet::tp_sig: - error("%s: All signal inlets must be at the left side",thisName()); + error("%s: All signal inlets must be left-aligned",thisName()); ok = false; break; case xlet::tp_float: -- cgit v1.2.1