From 9026ea4981dd69959341b3f646ed26a7fd9b9f5b Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Sun, 13 Mar 2005 04:56:40 +0000 Subject: fixes for attribute editor (to deal with large dialogs) fix for gcc strangeness eliminated ChannelsIn/ChannelsOut moved ShouldExit to flext namespace new naming for some virtual callback functions fix for flext_dsp @ Max svn path=/trunk/; revision=2621 --- externals/grill/flext/source/fldsp.h | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 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 a9452aa6..1ba21ef1 100644 --- a/externals/grill/flext/source/fldsp.h +++ b/externals/grill/flext/source/fldsp.h @@ -51,6 +51,12 @@ public: //! returns current block (aka vector) size int Blocksize() const { return blksz; } + //! returns array of input vectors (CntInSig() vectors) + t_sample *const *InSig() const { return invecs; } + + //! returns array of output vectors (CntOutSig() vectors) + t_sample *const *OutSig() const { return outvecs; } + //! typedef describing a signal vector #if FLEXT_SYS == FLEXT_SYS_JMAX typedef fts_symbol_t t_signalvec; @@ -68,15 +74,28 @@ public: */ /*! \brief Called on every dsp init. \note Don't expect any valid data in the signal vectors! + flext_dsp::CbDsp should not be called by the derived class + + \return true (default)... use DSP, false, don't use DSP + */ + virtual bool CbDsp(); + + /*! \brief Called with every signal vector - here you do the dsp calculation + flext_dsp::CbSignal fills all output vectors with silence + */ + virtual void CbSignal(); + + /*! \brief Deprecated method for CbSignal + \deprecated \param n: frames (aka samples) in one signal vector \param insigs: array of input vectors (get number with function CntInSig()) \param outsigs: array of output vectors (get number with function CntOutSig()) */ virtual void m_dsp(int n,t_signalvec const *insigs,t_signalvec const *outsigs); - /*! \brief Called with every signal vector - here you do the dsp calculation - + /*! \brief Deprecated method for CbSignal + \deprecated \param n: frames (aka samples) in one signal vector \param insigs: array of input vectors (get number with function CntInSig()) \param outsigs: array of output vectors (get number with function CntOutSig()) -- cgit v1.2.1