diff options
author | Joerg Mueller <nexyon@gmail.com> | 2010-08-02 02:33:50 +0400 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2010-08-02 02:33:50 +0400 |
commit | 52ef66da4d785414e7ae5a60dd44a01727514169 (patch) | |
tree | cb9a26f84277abae1a4f47ef6f445a4ef0466587 /intern/audaspace/FX/AUD_SumFactory.cpp | |
parent | 5c9cf81cf98c99e52064b0cd45be3b2eaba9e40c (diff) |
Audaspace:
* Created awesome filter classes :)
* Made all filter effects use the filter classes instead of having the same implementation everywhere.
* Added a Python API for LTI IIR filters.
* Fixed a warning in creator.c that was introduced when adding game autoplay.
Diffstat (limited to 'intern/audaspace/FX/AUD_SumFactory.cpp')
-rw-r--r-- | intern/audaspace/FX/AUD_SumFactory.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/intern/audaspace/FX/AUD_SumFactory.cpp b/intern/audaspace/FX/AUD_SumFactory.cpp index 96ad286bf5c..a128e50504c 100644 --- a/intern/audaspace/FX/AUD_SumFactory.cpp +++ b/intern/audaspace/FX/AUD_SumFactory.cpp @@ -24,7 +24,7 @@ */ #include "AUD_SumFactory.h" -#include "AUD_SumReader.h" +#include "AUD_IIRFilterReader.h" AUD_SumFactory::AUD_SumFactory(AUD_IFactory* factory) : AUD_EffectFactory(factory) @@ -33,5 +33,9 @@ AUD_SumFactory::AUD_SumFactory(AUD_IFactory* factory) : AUD_IReader* AUD_SumFactory::createReader() const { - return new AUD_SumReader(getReader()); + std::vector<float> a, b; + a.push_back(1); + a.push_back(-1); + b.push_back(1); + return new AUD_IIRFilterReader(getReader(), b, a); } |