17 */ |
17 */ |
18 |
18 |
19 #ifndef PHONON_MMF_BASSBOOST_H |
19 #ifndef PHONON_MMF_BASSBOOST_H |
20 #define PHONON_MMF_BASSBOOST_H |
20 #define PHONON_MMF_BASSBOOST_H |
21 |
21 |
22 #include <BassBoostBase.h> |
|
23 #include "abstractaudioeffect.h" |
22 #include "abstractaudioeffect.h" |
|
23 |
|
24 class CBassBoost; |
24 |
25 |
25 QT_BEGIN_NAMESPACE |
26 QT_BEGIN_NAMESPACE |
26 |
27 |
27 namespace Phonon |
28 namespace Phonon |
28 { |
29 { |
29 namespace MMF |
30 namespace MMF |
30 { |
31 { |
31 /** |
32 /** |
32 * @short An "bass boost" effect. |
33 * @short A "bass boost" effect. |
33 * |
|
34 * The documentation does not say what "bass boost" is, neither has it anykind |
|
35 * of setting. It's an on or off thing. |
|
36 */ |
34 */ |
37 class BassBoost : public AbstractAudioEffect |
35 class BassBoost : public AbstractAudioEffect |
38 { |
36 { |
39 Q_OBJECT |
37 Q_OBJECT |
40 public: |
38 public: |
41 BassBoost(QObject *parent); |
39 BassBoost(QObject *parent, const QList<EffectParameter> ¶meters); |
|
40 |
|
41 // Static interface required by EffectFactory |
|
42 static const char* description(); |
|
43 static bool getParameters(CMdaAudioOutputStream *stream, |
|
44 QList<EffectParameter>& parameters); |
42 |
45 |
43 protected: |
46 protected: |
44 virtual void parameterChanged(const int id, |
47 // AbstractAudioEffect |
45 const QVariant &value); |
48 virtual void createEffect(AudioPlayer::NativePlayer *player); |
46 |
|
47 virtual bool activateOn(CPlayerType *player); |
|
48 |
49 |
49 private: |
50 private: |
50 QScopedPointer<CBassBoost> m_bassBoost; |
51 CBassBoost *concreteEffect(); |
|
52 |
51 }; |
53 }; |
52 } |
54 } |
53 } |
55 } |
54 |
56 |
55 QT_END_NAMESPACE |
57 QT_END_NAMESPACE |