14 You should have received a copy of the GNU Lesser General Public License |
14 You should have received a copy of the GNU Lesser General Public License |
15 along with this library. If not, see <http://www.gnu.org/licenses/>. |
15 along with this library. If not, see <http://www.gnu.org/licenses/>. |
16 |
16 |
17 */ |
17 */ |
18 |
18 |
|
19 #include <BassBoostBase.h> |
19 #include "bassboost.h" |
20 #include "bassboost.h" |
20 |
21 |
21 QT_BEGIN_NAMESPACE |
22 QT_BEGIN_NAMESPACE |
22 |
23 |
23 using namespace Phonon; |
24 using namespace Phonon; |
24 using namespace Phonon::MMF; |
25 using namespace Phonon::MMF; |
25 |
26 |
|
27 // Define functions which depend on concrete native effect class name |
|
28 PHONON_MMF_DEFINE_EFFECT_FUNCTIONS(BassBoost) |
|
29 |
26 /*! \class MMF::BassBoost |
30 /*! \class MMF::BassBoost |
27 \internal |
31 \internal |
28 */ |
32 */ |
29 |
33 |
30 BassBoost::BassBoost(QObject *parent) : AbstractAudioEffect::AbstractAudioEffect(parent, |
34 BassBoost::BassBoost(QObject *parent, const QList<EffectParameter> ¶meters) |
31 QList<EffectParameter>()) |
35 : AbstractAudioEffect::AbstractAudioEffect(parent, parameters) |
32 { |
36 { |
|
37 |
33 } |
38 } |
34 |
39 |
35 void BassBoost::parameterChanged(const int, |
40 //----------------------------------------------------------------------------- |
36 const QVariant &) |
41 // Static functions |
|
42 //----------------------------------------------------------------------------- |
|
43 |
|
44 const char* BassBoost::description() |
37 { |
45 { |
38 // We should never be called, because we have no parameters. |
46 return "Bass boost"; |
39 } |
47 } |
40 |
48 |
41 bool BassBoost::activateOn(CPlayerType *player) |
49 bool BassBoost::getParameters(CMdaAudioOutputStream *stream, |
|
50 QList<EffectParameter> ¶meters) |
42 { |
51 { |
43 m_effect.reset(CBassBoost::NewL(*player, true)); |
52 QScopedPointer<CBassBoost> effect; |
44 return true; |
53 TRAPD(err, effect.reset(CBassBoost::NewL(*stream))); |
|
54 return (KErrNone == err); |
45 } |
55 } |
46 |
56 |
47 QT_END_NAMESPACE |
57 QT_END_NAMESPACE |
48 |
58 |