From 8edeb549041f2adce5d83ae071499f5a72e5db40 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Tue, 11 Oct 2005 22:22:48 +0000 Subject: bugfixes and optimizations, especially for DSP under Max/MSP fixed and cleaned up library related stuff, especially co-existance of Max message and DSP library objects eliminate jmax code fixed dsp vector offset bug better separation between build styles - better handling of click callback - more compatible handling of attributes in patcher (hiding is now an option - define FLEXT_ATTRHIDE) svn path=/trunk/; revision=3695 --- externals/grill/flext/source/fldsp.h | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'externals/grill/flext/source/fldsp.h') diff --git a/externals/grill/flext/source/fldsp.h b/externals/grill/flext/source/fldsp.h index b85bbe07..b766ed8d 100644 --- a/externals/grill/flext/source/fldsp.h +++ b/externals/grill/flext/source/fldsp.h @@ -33,6 +33,8 @@ class FLEXT_SHARE FLEXT_CLASSDEF(flext_dsp): { FLEXT_HEADER_S(FLEXT_CLASSDEF(flext_dsp),flext_base,Setup) + friend class FLEXT_SHARE FLEXT_CLASSDEF(flext_base); + public: /*! \defgroup FLEXT_DSP Flext dsp class @@ -148,10 +150,6 @@ protected: FLEXT_CLASSDEF(flext_dsp)(); -#if FLEXT_SYS == FLEXT_SYS_MAX - virtual bool Init(); -#endif - virtual void Exit(); private: @@ -164,15 +162,15 @@ private: // setup function static void Setup(t_classid c); - // callback functions -#if 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); - static void cb_enable(t_class *c,t_float on); +#if FLEXT_SYS == FLEXT_SYS_PD + static void cb_enable(flext_hdr *c,t_float on); bool dspon; #endif + static inline flext_dsp *thisObject(flext_hdr *c) { return FLEXT_CAST(c->data); } + + void SetupDsp(t_signal **sp); + // dsp stuff static t_int *dspmeth(t_int *w); }; -- cgit v1.2.1