diff options
Diffstat (limited to 'intern/audaspace/FX/AUD_EnvelopeReader.h')
-rw-r--r-- | intern/audaspace/FX/AUD_EnvelopeReader.h | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/intern/audaspace/FX/AUD_EnvelopeReader.h b/intern/audaspace/FX/AUD_EnvelopeReader.h index ff9dd23d34c..b452ee2119a 100644 --- a/intern/audaspace/FX/AUD_EnvelopeReader.h +++ b/intern/audaspace/FX/AUD_EnvelopeReader.h @@ -27,7 +27,7 @@ #define AUD_ENVELOPEREADER #include "AUD_EffectReader.h" -class AUD_Buffer; +#include "AUD_Buffer.h" /** * This class represents an envelope follower. @@ -36,29 +36,33 @@ class AUD_EnvelopeReader : public AUD_EffectReader { private: /** - * The playback buffer. + * Attack b value. */ - AUD_Buffer *m_buffer; + const float m_bAttack; /** - * The last envelopes buffer. + * Release b value. */ - AUD_Buffer *m_envelopes; + const float m_bRelease; /** - * Attack b value. + * Threshold value. */ - float m_bAttack; + const float m_threshold; /** - * Release b value. + * The playback buffer. */ - float m_bRelease; + AUD_Buffer m_buffer; /** - * Threshold value. + * The last envelopes buffer. */ - float m_threshold; + AUD_Buffer m_envelopes; + + // hide copy constructor and operator= + AUD_EnvelopeReader(const AUD_EnvelopeReader&); + AUD_EnvelopeReader& operator=(const AUD_EnvelopeReader&); public: /** @@ -68,16 +72,10 @@ public: * \param release The release value in seconds. * \param threshold The threshold value. * \param arthreshold The attack/release threshold value. - * \exception AUD_Exception Thrown if the reader specified is NULL. */ AUD_EnvelopeReader(AUD_IReader* reader, float attack, float release, float threshold, float arthreshold); - /** - * Destroys the reader. - */ - virtual ~AUD_EnvelopeReader(); - virtual void read(int & length, sample_t* & buffer); }; |