From e2d190402557ed3e57679fdbfdcb8643bda84d42 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Fri, 10 Jan 2003 04:37:50 +0000 Subject: "" svn path=/trunk/; revision=334 --- externals/grill/xsample/source/main.h | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'externals/grill/xsample/source/main.h') diff --git a/externals/grill/xsample/source/main.h b/externals/grill/xsample/source/main.h index 77d02772..8f9d15dc 100644 --- a/externals/grill/xsample/source/main.h +++ b/externals/grill/xsample/source/main.h @@ -61,6 +61,13 @@ WARRANTIES, see the file, "license.txt," in this distribution. #define S t_sample +#ifdef __MWERKS__ + #define STD std +#else + #define STD +#endif + + class xsample: public flext_dsp { @@ -120,10 +127,10 @@ protected: BL bufchk() { if(buf->Update()) { m_refresh(); return true; } return false; } V mg_buffer(AtomList &l) { if(buf) { l(1); SetSymbol(l[0],buf->Symbol()); } else l(); } - V ms_buffer(const AtomList &l) { m_set(l.Count(),l.Atoms()); } + inline V ms_buffer(const AtomList &l) { m_set(l.Count(),l.Atoms()); } - V mg_min(F &v) const { v = curmin*s2u; } - V mg_max(F &v) const { v = curmax*s2u; } + inline V mg_min(F &v) const { v = curmin*s2u; } + inline V mg_max(F &v) const { v = curmax*s2u; } private: static V setup(t_classid c); @@ -250,7 +257,7 @@ protected: class xinter: public xsample { - FLEXT_HEADER(xinter,xsample) + FLEXT_HEADER_S(xinter,xsample,setup) public: xinter(); @@ -261,7 +268,7 @@ protected: virtual V m_start(); virtual V m_stop(); - V m_interp(xs_intp mode = xsi__) { interp = mode; s_dsp(); } + inline V m_interp(xs_intp mode = xsi__) { interp = mode; s_dsp(); } I outchns; BL doplay; @@ -282,8 +289,10 @@ protected: virtual V s_dsp(); private: + static V setup(t_classid c); - FLEXT_CALLBACK_1(m_interp,xs_intp) + FLEXT_CALLSET_E(m_interp,xs_intp) + FLEXT_ATTRGET_E(interp,xs_intp) }; #ifdef TMPLOPT -- cgit v1.2.1