diff options
author | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-01-11 15:38:07 (GMT) |
---|---|---|
committer | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-01-11 15:38:07 (GMT) |
commit | 894bb6e1742b75312feb7a18d043a67a3dba4cb9 (patch) | |
tree | 84ed946121bbae72b0933b8f5bc785a6b34aec18 /src/3rdparty/phonon/mmf/bassboost.h | |
parent | e53306725e52407146304df9d8d3a65920fc3e8d (diff) | |
download | Qt-894bb6e1742b75312feb7a18d043a67a3dba4cb9.zip Qt-894bb6e1742b75312feb7a18d043a67a3dba4cb9.tar.gz Qt-894bb6e1742b75312feb7a18d043a67a3dba4cb9.tar.bz2 |
Removed dependency of EffectFactory on native effect headers
By refactoring the static capabilities / parameters interface
exposed by AbstractAudioEffect-derived classes to the EffectFactory,
the latter's implementation no longer needs access to the headers
for native effect classes.
Previously, during the initialization phase, the EffectFactory
tried to create an instance of each native effect class, in order to
determine whether that effect is supported. This is now done inside
the backend class for each effect, thereby improving encapsulation.
Task-number: QTBUG-4659
Reviewed-by: Espen Riskedal
Diffstat (limited to 'src/3rdparty/phonon/mmf/bassboost.h')
-rw-r--r-- | src/3rdparty/phonon/mmf/bassboost.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/3rdparty/phonon/mmf/bassboost.h b/src/3rdparty/phonon/mmf/bassboost.h index 9f3d764..241cda9 100644 --- a/src/3rdparty/phonon/mmf/bassboost.h +++ b/src/3rdparty/phonon/mmf/bassboost.h @@ -21,8 +21,6 @@ along with this library. If not, see <http://www.gnu.org/licenses/>. #include "abstractaudioeffect.h" -class CBassBoost; - QT_BEGIN_NAMESPACE namespace Phonon @@ -43,9 +41,8 @@ public: // Static interface required by EffectFactory static const char* description(); - typedef CBassBoost NativeEffect; - static void getParameters(NativeEffect *effect, - QList<EffectParameter> ¶meters); + static bool getParameters(CMdaAudioOutputStream *stream, + QList<EffectParameter>& parameters); protected: // AbstractAudioEffect |