| 1 |
/* This file is part of the KDE project. |
| 2 |
|
| 3 |
Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
| 4 |
|
| 5 |
This library is free software: you can redistribute it and/or modify |
| 6 |
it under the terms of the GNU Lesser General Public License as published by |
| 7 |
the Free Software Foundation, either version 2.1 or 3 of the License. |
| 8 |
|
| 9 |
This library is distributed in the hope that it will be useful, |
| 10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
GNU Lesser General Public License for more details. |
| 13 |
|
| 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/>. |
| 16 |
|
| 17 |
*/ |
| 18 |
|
| 19 |
#ifndef PHONON_MMF_ENVIRONMENTALREVERB_H |
| 20 |
#define PHONON_MMF_ENVIRONMENTALREVERB_H |
| 21 |
|
| 22 |
#include "abstractaudioeffect.h" |
| 23 |
|
| 24 |
class CEnvironmentalReverb; |
| 25 |
|
| 26 |
QT_BEGIN_NAMESPACE |
| 27 |
|
| 28 |
namespace Phonon |
| 29 |
{ |
| 30 |
namespace MMF |
| 31 |
{ |
| 32 |
/** |
| 33 |
* @short A reverb effect. |
| 34 |
*/ |
| 35 |
class EnvironmentalReverb : public AbstractAudioEffect |
| 36 |
{ |
| 37 |
Q_OBJECT |
| 38 |
public: |
| 39 |
EnvironmentalReverb(QObject *parent, const QList<EffectParameter>& parameters); |
| 40 |
|
| 41 |
// Static interface required by EffectFactory |
| 42 |
static const char* description(); |
| 43 |
static bool getParameters(CMdaAudioOutputStream *stream, |
| 44 |
QList<EffectParameter>& parameters); |
| 45 |
|
| 46 |
protected: |
| 47 |
// AbstractAudioEffect |
| 48 |
virtual void createEffect(AudioPlayer::NativePlayer *player); |
| 49 |
virtual int effectParameterChanged(const EffectParameter ¶m, |
| 50 |
const QVariant &value); |
| 51 |
|
| 52 |
private: |
| 53 |
CEnvironmentalReverb *concreteEffect(); |
| 54 |
|
| 55 |
}; |
| 56 |
} |
| 57 |
} |
| 58 |
|
| 59 |
QT_END_NAMESPACE |
| 60 |
|
| 61 |
#endif |