From 5aeb36ec9e7aaee34ce8f5f248029d39047e2918 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Tue, 5 Aug 2003 02:37:17 +0000 Subject: "" svn path=/trunk/; revision=823 --- externals/grill/flext/changes.txt | 3 + externals/grill/flext/flext.vcproj | 2112 +++++++++++++++++++++----- externals/grill/flext/source/flbase.h | 4 + externals/grill/flext/source/flclass.h | 48 +- externals/grill/flext/source/fldsp.cpp | 2 + externals/grill/flext/source/fldsp.h | 2 + externals/grill/flext/source/flext.h | 14 +- externals/grill/flext/source/fllib.cpp | 8 +- externals/grill/flext/source/flproxy.cpp | 41 +- externals/grill/flext/source/flsupport.cpp | 18 +- externals/grill/pool/data.cpp | 3 +- externals/grill/pool/main.cpp | 2 +- externals/grill/pool/pool.cpp | 4 +- externals/grill/pool/pool.h | 4 +- externals/grill/pool/pool.help | Bin 6174 -> 6369 bytes externals/grill/pool/pool.vcproj | 198 ++- externals/grill/xsample/maxmsp/xgroove~.help | Bin 7306 -> 7578 bytes externals/grill/xsample/xsample.vcproj | 348 ++++- 18 files changed, 2361 insertions(+), 450 deletions(-) diff --git a/externals/grill/flext/changes.txt b/externals/grill/flext/changes.txt index 1fc53676..19610f05 100644 --- a/externals/grill/flext/changes.txt +++ b/externals/grill/flext/changes.txt @@ -274,6 +274,9 @@ general: - make links flext.a -> libflext.a for compatibility +- add double handlers +- add signal in/out connection query function + bugs: - PD: problems with timed buffer redrawing (takes a lot of cpu time) - hard thread termination upon object destruction doesn't seem to work properly -> crash diff --git a/externals/grill/flext/flext.vcproj b/externals/grill/flext/flext.vcproj index 173c93bc..3cf80ec3 100644 --- a/externals/grill/flext/flext.vcproj +++ b/externals/grill/flext/flext.vcproj @@ -122,7 +122,7 @@ Name="VCAuxiliaryManagedWrapperGeneratorTool"/> @@ -400,7 +400,7 @@ Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -514,7 +776,7 @@ copy F:\prog\max\flext\pd-msvc\flext.dll f:\prog\dll PreprocessorDefinitions=""/> + Name="PD Threads Debug|Win32"> + Name="PD Debug|Win32"> + Name="PD Threads Release|Win32"> + Name="PD Release|Win32"> + Name="PD Shared Debug|Win32"> + Name="PD Shared Release|Win32"> - - + Name="Max Shared Debug|Win32"> + Name="Max Shared Release|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Release|Win32"> + Name="Max Debug|Win32"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + Name="Threads DLL Release|Win32"> + Name="PD Threads Debug|Win32"> + Name="PD Debug|Win32"> - - + Name="PD Threads Release|Win32"> + PreprocessorDefinitions=""/> + Name="PD Release|Win32"> + Name="PD Shared Debug|Win32"> + Name="PD Shared Release|Win32"> + Name="Max Shared Debug|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Shared Release|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Release|Win32"> + Name="Max Debug|Win32"> + RelativePath="source\flitem.cpp"> + Name="PD Threads Debug|Win32"> + Name="PD Debug|Win32"> + Name="PD Threads Release|Win32"> + Name="PD Release|Win32"> + Name="PD Shared Debug|Win32"> + Name="PD Shared Release|Win32"> - - - - + Name="Max Shared Debug|Win32"> + Name="Max Shared Release|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Release|Win32"> + Name="Max Debug|Win32"> + + + Name="Threads DLL Debug|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Threads DLL Release|Win32"> + Name="PD Threads Debug|Win32"> + Name="PD Debug|Win32"> - - - - - - + Name="PD Threads Release|Win32"> + PreprocessorDefinitions=""/> + Name="PD Release|Win32"> + Name="PD Shared Debug|Win32"> + Name="PD Shared Release|Win32"> + Name="Max Shared Debug|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Shared Release|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Release|Win32"> + Name="Max Debug|Win32"> - - - - + RelativePath="source\flmsg.cpp"> + Name="PD Threads Debug|Win32"> + Name="PD Debug|Win32"> + Name="PD Threads Release|Win32"> + Name="PD Release|Win32"> + Name="PD Shared Debug|Win32"> + Name="PD Shared Release|Win32"> - - - - - - + Name="Max Shared Debug|Win32"> + Name="Max Shared Release|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Release|Win32"> + Name="Max Debug|Win32"> + + + Name="Threads DLL Debug|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Threads DLL Release|Win32"> + Name="PD Threads Debug|Win32"> + Name="PD Debug|Win32"> - - - - + Name="PD Threads Release|Win32"> + PreprocessorDefinitions=""/> + Name="PD Release|Win32"> + Name="PD Shared Debug|Win32"> + Name="PD Shared Release|Win32"> + Name="Max Shared Debug|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Shared Release|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Release|Win32"> + Name="Max Debug|Win32"> - - + RelativePath="source\flproxy.cpp"> + Name="PD Threads Debug|Win32"> + Name="PD Debug|Win32"> + Name="PD Threads Release|Win32"> + Name="PD Release|Win32"> + Name="PD Shared Debug|Win32"> + Name="PD Shared Release|Win32"> - - + Name="Max Shared Debug|Win32"> + Name="Max Shared Release|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Release|Win32"> + Name="Max Debug|Win32"> + + + Name="Threads DLL Debug|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Threads DLL Release|Win32"> + Name="PD Threads Debug|Win32"> + Name="PD Debug|Win32"> - - + Name="PD Threads Release|Win32"> + PreprocessorDefinitions=""/> + Name="PD Release|Win32"> + Name="PD Shared Debug|Win32"> + Name="PD Shared Release|Win32"> + Name="Max Shared Debug|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Shared Release|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Release|Win32"> + Name="Max Debug|Win32"> + RelativePath="source\flxlet.cpp"> + Name="PD Threads Debug|Win32"> + Name="PD Debug|Win32"> + Name="PD Threads Release|Win32"> + Name="PD Release|Win32"> + Name="PD Shared Debug|Win32"> + Name="PD Shared Release|Win32"> - - + Name="Max Shared Debug|Win32"> + Name="Max Shared Release|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Release|Win32"> + Name="Max Debug|Win32"> + + + + + Name="Threads DLL Debug|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Threads DLL Release|Win32"> + Name="PD Threads Debug|Win32"> + Name="PD Debug|Win32"> - - + Name="PD Threads Release|Win32"> + PreprocessorDefinitions=""/> + Name="PD Release|Win32"> + Name="PD Shared Debug|Win32"> + Name="PD Shared Release|Win32"> + Name="Max Shared Debug|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Shared Release|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Release|Win32"> + Name="Max Debug|Win32"> + RelativePath="source\flmspbuffer.h"> + + + Name="PD Threads Debug|Win32"> + Name="PD Debug|Win32"> + Name="PD Threads Release|Win32"> + Name="PD Release|Win32"> + Name="PD Shared Debug|Win32"> + Name="PD Shared Release|Win32"> - - + Name="Max Shared Debug|Win32"> + Name="Max Shared Release|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Release|Win32"> + Name="Max Debug|Win32"> + + + Name="Threads DLL Debug|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Threads DLL Release|Win32"> + Name="PD Threads Debug|Win32"> + Name="PD Debug|Win32"> - - - - + Name="PD Threads Release|Win32"> + PreprocessorDefinitions=""/> + Name="PD Release|Win32"> + Name="PD Shared Debug|Win32"> + Name="PD Shared Release|Win32"> + Name="Max Shared Debug|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Shared Release|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Release|Win32"> + Name="Max Debug|Win32"> + RelativePath="source\flsupport.h"> + RelativePath="source\fltimer.cpp"> + Name="PD Threads Debug|Win32"> + Name="PD Debug|Win32"> + Name="PD Threads Release|Win32"> + Name="PD Release|Win32"> + Name="PD Shared Debug|Win32"> + Name="PD Shared Release|Win32"> - - + Name="Max Shared Debug|Win32"> + Name="Max Shared Release|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Release|Win32"> + Name="Max Debug|Win32"> + + + Name="Threads DLL Debug|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Threads DLL Release|Win32"> + Name="PD Threads Debug|Win32"> + Name="PD Debug|Win32"> - - - - + Name="PD Threads Release|Win32"> + PreprocessorDefinitions=""/> + Name="PD Release|Win32"> + Name="PD Shared Debug|Win32"> + Name="PD Shared Release|Win32"> + Name="Max Shared Debug|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Shared Release|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Release|Win32"> + Name="Max Debug|Win32"> + + + RelativePath="source\fldsp.cpp"> + Name="PD Threads Debug|Win32"> + Name="PD Debug|Win32"> + Name="PD Threads Release|Win32"> + Name="PD Release|Win32"> + Name="PD Shared Debug|Win32"> + Name="PD Shared Release|Win32"> - - - - + Name="Max Shared Debug|Win32"> + Name="Max Shared Release|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Release|Win32"> + Name="Max Debug|Win32"> + + + + + + + Name="Threads DLL Debug|Win32"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Threads DLL Release|Win32"> + Name="PD Threads Debug|Win32"> + Name="PD Debug|Win32"> - - - - - - + Name="PD Threads Release|Win32"> + PreprocessorDefinitions=""/> + Name="PD Release|Win32"> + Name="PD Shared Debug|Win32" + ExcludedFromBuild="TRUE"> + Name="PD Shared Release|Win32" + ExcludedFromBuild="TRUE"> + Name="Max Shared Debug|Win32" + ExcludedFromBuild="TRUE"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + Name="Max Shared Release|Win32" + ExcludedFromBuild="TRUE"> + PreprocessorDefinitions="" + BasicRuntimeChecks="3" + BrowseInformation="1"/> + + + + + + + + + + + + @@ -2433,7 +3683,7 @@ copy F:\prog\max\flext\pd-msvc\flext.dll f:\prog\dll PreprocessorDefinitions=""/> + Name="PD Threads Debug|Win32"> + Name="PD Debug|Win32"> + Name="PD Threads Release|Win32"> + Name="PD Release|Win32"> + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/externals/grill/flext/source/flbase.h b/externals/grill/flext/source/flbase.h index 795c0673..0587f919 100644 --- a/externals/grill/flext/source/flbase.h +++ b/externals/grill/flext/source/flbase.h @@ -249,8 +249,12 @@ class FLEXT_SHARE FLEXT_CLASSDEF(flext_obj): #if FLEXT_SYS == FLEXT_SYS_JMAX static void obj_new(fts_object_t *o, int winlet, fts_symbol_t s, int ac, const fts_atom_t *at); static void obj_free(fts_object_t *o, int winlet, fts_symbol_t s, int ac, const fts_atom_t *at); +#else +#if FLEXT_SYS == FLEXT_SYS_MAX + static flext_hdr *obj_new(const t_symbol *s,short argc,t_atom *argv); #else static flext_hdr *obj_new(const t_symbol *s,int argc,t_atom *argv); +#endif static void obj_free(flext_hdr *o); #endif diff --git a/externals/grill/flext/source/flclass.h b/externals/grill/flext/source/flclass.h index 11661d67..20f5117c 100644 --- a/externals/grill/flext/source/flclass.h +++ b/externals/grill/flext/source/flclass.h @@ -849,24 +849,6 @@ private: static void px_method(px_object *c,const t_symbol *s,int argc,t_atom *argv); }; -#elif FLEXT_SYS == FLEXT_SYS_MAX - typedef object px_object; - static void cb_px_float(t_class *c,float f); - static void cb_px_int(t_class *c,int v); - static void cb_px_bang(t_class *c); - - static void cb_px_in1(t_class *c,int v); - static void cb_px_in2(t_class *c,int v); - static void cb_px_in3(t_class *c,int v); - static void cb_px_in4(t_class *c,int v); - static void cb_px_in5(t_class *c,int v); - static void cb_px_in6(t_class *c,int v); - static void cb_px_in7(t_class *c,int v); - static void cb_px_in8(t_class *c,int v); - static void cb_px_in9(t_class *c,int v); -#endif - -#if FLEXT_SYS == FLEXT_SYS_PD || FLEXT_SYS == FLEXT_SYS_MAX static void cb_px_anything(t_class *c,const t_symbol *s,int argc,t_atom *argv); static void cb_px_ft1(t_class *c,float f); @@ -879,6 +861,36 @@ private: static void cb_px_ft8(t_class *c,float f); static void cb_px_ft9(t_class *c,float f); +#elif FLEXT_SYS == FLEXT_SYS_MAX + typedef object px_object; + static void cb_px_float(t_class *c,double f); + static void cb_px_int(t_class *c,long v); + static void cb_px_bang(t_class *c); + + static void cb_px_in1(t_class *c,long v); + static void cb_px_in2(t_class *c,long v); + static void cb_px_in3(t_class *c,long v); + static void cb_px_in4(t_class *c,long v); + static void cb_px_in5(t_class *c,long v); + static void cb_px_in6(t_class *c,long v); + static void cb_px_in7(t_class *c,long v); + static void cb_px_in8(t_class *c,long v); + static void cb_px_in9(t_class *c,long v); + + static void cb_px_ft1(t_class *c,double f); + static void cb_px_ft2(t_class *c,double f); + static void cb_px_ft3(t_class *c,double f); + static void cb_px_ft4(t_class *c,double f); + static void cb_px_ft5(t_class *c,double f); + static void cb_px_ft6(t_class *c,double f); + static void cb_px_ft7(t_class *c,double f); + static void cb_px_ft8(t_class *c,double f); + static void cb_px_ft9(t_class *c,double f); + + static void cb_px_anything(t_class *c,const t_symbol *s,short argc,t_atom *argv); +#endif + +#if FLEXT_SYS == FLEXT_SYS_PD || FLEXT_SYS == FLEXT_SYS_MAX px_object **inlets; #elif FLEXT_SYS == FLEXT_SYS_JMAX static void jmax_proxy(fts_object_t *c, int winlet, fts_symbol_t s, int ac, const fts_atom_t *at); diff --git a/externals/grill/flext/source/fldsp.cpp b/externals/grill/flext/source/fldsp.cpp index 6d3298b2..9985464a 100644 --- a/externals/grill/flext/source/fldsp.cpp +++ b/externals/grill/flext/source/fldsp.cpp @@ -122,6 +122,8 @@ t_int *flext_dsp::dspmeth(t_int *w) #if FLEXT_SYS == FLEXT_SYS_JMAX void flext_dsp::cb_dsp(fts_object_t *c, int winlet, fts_symbol_t s, int ac, const fts_atom_t *at) +#elif FLEXT_SYS == FLEXT_SYS_MAX +void flext_dsp::cb_dsp(t_class *c,t_signal **sp,short *count) #else void flext_dsp::cb_dsp(t_class *c,t_signal **sp) #endif diff --git a/externals/grill/flext/source/fldsp.h b/externals/grill/flext/source/fldsp.h index ee94973d..21a3aadb 100644 --- a/externals/grill/flext/source/fldsp.h +++ b/externals/grill/flext/source/fldsp.h @@ -155,6 +155,8 @@ private: static void cb_dsp(fts_object_t *o, int winlet, fts_symbol_t s, int ac, const fts_atom_t *at); // static void cb_dsp_init(fts_object_t *o, int winlet, fts_symbol_t *s, int ac, const fts_atom_t *at); // static void cb_dsp_delete(fts_object_t *o, int winlet, fts_symbol_t *s, int ac, const fts_atom_t *at); +#elif FLEXT_SYS == FLEXT_SYS_MAX + static void cb_dsp(t_class *c,t_signal **s,short *count); #else static void cb_dsp(t_class *c,t_signal **s); #endif diff --git a/externals/grill/flext/source/flext.h b/externals/grill/flext/source/flext.h index 1a87e2bf..9fd63487 100644 --- a/externals/grill/flext/source/flext.h +++ b/externals/grill/flext/source/flext.h @@ -50,6 +50,13 @@ WARRANTIES, see the file, "license.txt," in this distribution. #endif #endif + +#if FLEXT_SYS == FLEXT_SYS_MAX && FLEXT_OS == FLEXT_OS_WIN +// for wmax alignment must be 2 bytes! +#pragma pack(2) +#endif + + // include all the flext interface definitions #include "fldefs.h" @@ -59,6 +66,9 @@ WARRANTIES, see the file, "license.txt," in this distribution. // include the flext dsp class #include "fldsp.h" +/* +#if FLEXT_SYS == FLEXT_SYS_MAX && FLEXT_OS == FLEXT_OS_WIN +#pragma pack(pop) +#endif +*/ #endif // FLEXT_H - - diff --git a/externals/grill/flext/source/fllib.cpp b/externals/grill/flext/source/fllib.cpp index a6d95895..e1fc89c1 100755 --- a/externals/grill/flext/source/fllib.cpp +++ b/externals/grill/flext/source/fllib.cpp @@ -27,8 +27,10 @@ WARRANTIES, see the file, "license.txt," in this distribution. #elif FLEXT_OS == FLEXT_OS_WIN #if FLEXT_SYS == FLEXT_SYS_PD #define ALIASSLASH '/' + #elif FLEXT_SYS == FLEXT_SYS_MAX + #define ALIASSLASH '/' #else - #error "Undefined" + #error "Undefined" #endif #else // default to "/" @@ -332,7 +334,11 @@ void flext_obj::obj_new(fts_object_t *o, int, fts_symbol_t s, int _argc_, const { flext_hdr *obj = (flext_hdr *)o; #else +#if FLEXT_SYS == FLEXT_SYS_MAX +flext_hdr *flext_obj::obj_new(const t_symbol *s,short _argc_,t_atom *argv) +#else flext_hdr *flext_obj::obj_new(const t_symbol *s,int _argc_,t_atom *argv) +#endif { flext_hdr *obj = NULL; #endif diff --git a/externals/grill/flext/source/flproxy.cpp b/externals/grill/flext/source/flproxy.cpp index 2edcd4c9..85981130 100755 --- a/externals/grill/flext/source/flproxy.cpp +++ b/externals/grill/flext/source/flproxy.cpp @@ -43,17 +43,39 @@ add_method1(c,cb_px_ft ## IX,"ft" #IX,A_FLOAT) #elif FLEXT_SYS == FLEXT_SYS_MAX -void flext_base::cb_px_anything(t_class *c,const t_symbol *s,int argc,t_atom *argv) +void flext_base::cb_px_anything(t_class *c,const t_symbol *s,short argc,t_atom *argv) { // check if inlet allows anything (or list) flext_base *o = thisObject(c); int ci = ((flext_hdr *)o->x_obj)->curinlet; - o->m_methodmain(ci,s,argc,argv); } -void flext_base::cb_px_int(t_class *c,int v) +#if 0 //FLEXT_OS == FLEXT_OS_WIN +// could also work for OSX! + +void flext_base::cb_px_int(t_class *c,long v) +{ + flext_base *o = thisObject(c); + int ci = proxy_getinlet((t_object *)o->x_obj); + // check if inlet allows int type + t_atom atom; + SetInt(atom,v); + o->m_methodmain(ci,sym_int,1,&atom); +} + +void flext_base::cb_px_float(t_class *c,double v) +{ + flext_base *o = thisObject(c); + int ci = proxy_getinlet((t_object *)o->x_obj); + // check if inlet allows float type + t_atom atom; + SetFloat(atom,v); + o->m_methodmain(ci,sym_float,1,&atom); +} +#else +void flext_base::cb_px_int(t_class *c,long v) { // check if inlet allows int type t_atom atom; @@ -61,13 +83,14 @@ void flext_base::cb_px_int(t_class *c,int v) cb_px_anything(c,sym_int,1,&atom); } -void flext_base::cb_px_float(t_class *c,float v) +void flext_base::cb_px_float(t_class *c,double v) { // check if inlet allows float type t_atom atom; SetFloat(atom,v); cb_px_anything(c,sym_float,1,&atom); } +#endif void flext_base::cb_px_bang(t_class *c) { @@ -77,8 +100,8 @@ void flext_base::cb_px_bang(t_class *c) #define DEF_IN_FT(IX) \ -void flext_base::cb_px_in ## IX(t_class *c,int v) { long &ci = ((flext_hdr *)thisObject(c)->x_obj)->curinlet; ci = IX; cb_px_int(c,v); ci = 0; } \ -void flext_base::cb_px_ft ## IX(t_class *c,float v) { long &ci = ((flext_hdr *)thisObject(c)->x_obj)->curinlet; ci = IX; cb_px_float(c,v); ci = 0; } +void flext_base::cb_px_in ## IX(t_class *c,long v) { long &ci = ((flext_hdr *)thisObject(c)->x_obj)->curinlet; ci = IX; cb_px_int(c,v); ci = 0; } \ +void flext_base::cb_px_ft ## IX(t_class *c,double v) { long &ci = ((flext_hdr *)thisObject(c)->x_obj)->curinlet; ci = IX; cb_px_float(c,v); ci = 0; } #define ADD_IN_FT(IX) \ add_method1(c,cb_px_in ## IX,"in" #IX,A_INT); \ @@ -116,6 +139,11 @@ void flext_base::SetProxies(t_class *c) #error Not implemented! #endif +#if 0 //FLEXT_SYS == FLEXT_SYS_MAX && FLEXT_OS == FLEXT_OS_WIN + // could also work for OSX! + addint((method)cb_px_int); + addfloat((method)cb_px_float); +#else // setup non-leftmost ints and floats ADD_IN_FT(1); ADD_IN_FT(2); @@ -126,6 +154,7 @@ void flext_base::SetProxies(t_class *c) ADD_IN_FT(7); ADD_IN_FT(8); ADD_IN_FT(9); +#endif } #elif FLEXT_SYS == FLEXT_SYS_JMAX diff --git a/externals/grill/flext/source/flsupport.cpp b/externals/grill/flext/source/flsupport.cpp index 14b9bea5..b27196b8 100644 --- a/externals/grill/flext/source/flsupport.cpp +++ b/externals/grill/flext/source/flsupport.cpp @@ -174,6 +174,7 @@ int flext::Int2Bits(unsigned long n) return b; } + void flext::post(const char *fmt, ...) { #ifdef FLEXT_THREADS @@ -182,9 +183,15 @@ void flext::post(const char *fmt, ...) #endif va_list ap; va_start(ap, fmt); +#if FLEXT_SYS == FLEXT_SYS_MAX + char buf[1024]; // \TODO this is quite unsafe..... + vsprintf(buf, fmt, ap); + ::post(buf); +#else vfprintf(stderr, fmt, ap); + ::post(""); +#endif va_end(ap); - putc('\n', stderr); #ifdef FLEXT_THREADS mutex.Unlock(); #endif @@ -198,10 +205,17 @@ void flext::error(const char *fmt,...) #endif va_list ap; va_start(ap, fmt); +#if FLEXT_SYS == FLEXT_SYS_MAX + char buf[1024]; // \TODO this is quite unsafe..... + sprintf(buf,"error: "); + vsprintf(buf+7, fmt, ap); + ::post(buf); +#else fprintf(stderr, "error: "); vfprintf(stderr, fmt, ap); + ::post(""); +#endif va_end(ap); - putc('\n', stderr); #ifdef FLEXT_THREADS mutex.Unlock(); #endif diff --git a/externals/grill/pool/data.cpp b/externals/grill/pool/data.cpp index c254ad54..d99d83c2 100644 --- a/externals/grill/pool/data.cpp +++ b/externals/grill/pool/data.cpp @@ -11,10 +11,11 @@ WARRANTIES, see the file, "license.txt," in this distribution. #include "pool.h" #include -#include #include #include +#include +using namespace std; pooldata::pooldata(const S *s,I vcnt,I dcnt): sym(s),nxt(NULL),refs(0), diff --git a/externals/grill/pool/main.cpp b/externals/grill/pool/main.cpp index 4397a55b..135872b3 100644 --- a/externals/grill/pool/main.cpp +++ b/externals/grill/pool/main.cpp @@ -203,7 +203,7 @@ private: FLEXT_NEW_V("pool",pool); -pooldata *pool::head,*pool::tail; +pooldata *pool::head,*pool::tail; V pool::setup(t_classid c) diff --git a/externals/grill/pool/pool.cpp b/externals/grill/pool/pool.cpp index f58bae5f..25bb0b79 100644 --- a/externals/grill/pool/pool.cpp +++ b/externals/grill/pool/pool.cpp @@ -11,9 +11,11 @@ WARRANTIES, see the file, "license.txt," in this distribution. #include "pool.h" #include -#include #include #include +#include + +using namespace std; #define VBITS 6 #define DBITS 5 diff --git a/externals/grill/pool/pool.h b/externals/grill/pool/pool.h index 59195555..e4a55647 100644 --- a/externals/grill/pool/pool.h +++ b/externals/grill/pool/pool.h @@ -19,7 +19,9 @@ WARRANTIES, see the file, "license.txt," in this distribution. #error You need at least flext version 0.4.2 #endif -#include +#include + +using namespace std; typedef void V; typedef int I; diff --git a/externals/grill/pool/pool.help b/externals/grill/pool/pool.help index 959ca32f..9ec9715f 100755 Binary files a/externals/grill/pool/pool.help and b/externals/grill/pool/pool.help differ diff --git a/externals/grill/pool/pool.vcproj b/externals/grill/pool/pool.vcproj index d4240f10..3b04751b 100644 --- a/externals/grill/pool/pool.vcproj +++ b/externals/grill/pool/pool.vcproj @@ -13,7 +13,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -152,7 +286,7 @@ + Name="PD Release|Win32"> + Name="PD Debug|Win32"> + + + + + + + Name="PD Release|Win32"> + Name="PD Debug|Win32"> + + + + + + + Name="PD Release|Win32"> + Name="PD Debug|Win32"> + + + + + + diff --git a/externals/grill/xsample/maxmsp/xgroove~.help b/externals/grill/xsample/maxmsp/xgroove~.help index c839f411..43df9d87 100644 Binary files a/externals/grill/xsample/maxmsp/xgroove~.help and b/externals/grill/xsample/maxmsp/xgroove~.help differ diff --git a/externals/grill/xsample/xsample.vcproj b/externals/grill/xsample/xsample.vcproj index 3efa5161..8e61f58e 100644 --- a/externals/grill/xsample/xsample.vcproj +++ b/externals/grill/xsample/xsample.vcproj @@ -13,7 +13,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -164,7 +368,7 @@ + Name="PD Release|Win32"> + Name="PD Debug|Win32"> + + + + + + + + + + Name="PD Release|Win32"> + Name="PD Debug|Win32"> + + + + + + + + + @@ -209,7 +461,7 @@ + Name="PD Release|Win32"> + Name="PD Debug|Win32"> + + + + + + + + + @@ -233,7 +509,7 @@ + Name="PD Release|Win32"> + Name="PD Debug|Win32"> + + + + + + + + + + Name="PD Release|Win32"> + Name="PD Debug|Win32"> + + + + + + + + + -- cgit v1.2.1