diff options
Diffstat (limited to 'intern/audaspace/FX/AUD_EnvelopeFactory.h')
-rw-r--r-- | intern/audaspace/FX/AUD_EnvelopeFactory.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/intern/audaspace/FX/AUD_EnvelopeFactory.h b/intern/audaspace/FX/AUD_EnvelopeFactory.h index 45ee811b6e0..a480a05d478 100644 --- a/intern/audaspace/FX/AUD_EnvelopeFactory.h +++ b/intern/audaspace/FX/AUD_EnvelopeFactory.h @@ -33,6 +33,8 @@ #define AUD_ENVELOPEFACTORY #include "AUD_EffectFactory.h" +class AUD_CallbackIIRFilterReader; +struct EnvelopeParameters; /** * This factory creates an envelope follower reader. @@ -73,10 +75,13 @@ public: * \param threshold The threshold value. * \param arthreshold The attack/release threshold value. */ - AUD_EnvelopeFactory(AUD_IFactory* factory, float attack, float release, + AUD_EnvelopeFactory(AUD_Reference<AUD_IFactory> factory, float attack, float release, float threshold, float arthreshold); - virtual AUD_IReader* createReader() const; + virtual AUD_Reference<AUD_IReader> createReader(); + + static sample_t envelopeFilter(AUD_CallbackIIRFilterReader* reader, EnvelopeParameters* param); + static void endEnvelopeFilter(EnvelopeParameters* param); }; #endif //AUD_ENVELOPEFACTORY |