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_VolumeFactory.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_VolumeFactory.cpp')
-rw-r--r-- | intern/audaspace/FX/AUD_VolumeFactory.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/intern/audaspace/FX/AUD_VolumeFactory.cpp b/intern/audaspace/FX/AUD_VolumeFactory.cpp index 9f0fd5821fd..1b341a5a51a 100644 --- a/intern/audaspace/FX/AUD_VolumeFactory.cpp +++ b/intern/audaspace/FX/AUD_VolumeFactory.cpp @@ -24,7 +24,7 @@ */ #include "AUD_VolumeFactory.h" -#include "AUD_VolumeReader.h" +#include "AUD_IIRFilterReader.h" AUD_VolumeFactory::AUD_VolumeFactory(AUD_IFactory* factory, float volume) : AUD_EffectFactory(factory), @@ -39,5 +39,8 @@ float AUD_VolumeFactory::getVolume() const AUD_IReader* AUD_VolumeFactory::createReader() const { - return new AUD_VolumeReader(getReader(), m_volume); + std::vector<float> a, b; + a.push_back(1); + b.push_back(m_volume); + return new AUD_IIRFilterReader(getReader(), b, a); } |