~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to intern/audaspace/FX/AUD_DynamicIIRFilterFactory.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#define __AUD_DYNAMICIIRFILTERFACTORY_H__
31
31
 
32
32
#include "AUD_EffectFactory.h"
 
33
#include "AUD_IDynamicIIRFilterCalculator.h"
33
34
#include <vector>
34
35
 
35
36
/**
40
41
 */
41
42
class AUD_DynamicIIRFilterFactory : public AUD_EffectFactory
42
43
{
 
44
protected:
 
45
        boost::shared_ptr<AUD_IDynamicIIRFilterCalculator> m_calculator;
 
46
 
43
47
public:
44
48
        /**
45
49
         * Creates a new Dynmic IIR filter factory.
46
50
         * \param factory The input factory.
47
51
         */
48
 
        AUD_DynamicIIRFilterFactory(AUD_Reference<AUD_IFactory> factory);
49
 
 
50
 
        virtual AUD_Reference<AUD_IReader> createReader();
51
 
 
52
 
        /**
53
 
         * Recalculates the filter coefficients.
54
 
         * \param rate The sample rate of the audio data.
55
 
         * \param[out] b The input filter coefficients.
56
 
         * \param[out] a The output filter coefficients.
57
 
         */
58
 
        virtual void recalculateCoefficients(AUD_SampleRate rate,
59
 
                                                                                 std::vector<float>& b,
60
 
                                                                                 std::vector<float>& a)=0;
 
52
        AUD_DynamicIIRFilterFactory(boost::shared_ptr<AUD_IFactory> factory,
 
53
                                                                boost::shared_ptr<AUD_IDynamicIIRFilterCalculator> calculator);
 
54
 
 
55
        virtual boost::shared_ptr<AUD_IReader> createReader();
61
56
};
62
57
 
63
58
#endif // __AUD_DYNAMICIIRFILTERFACTORY_H__