| 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 | #ifndef Phonon_GSTREAMER_AUDIOEFFECT_H
|
|---|
| 19 | #define Phonon_GSTREAMER_AUDIOEFFECT_H
|
|---|
| 20 |
|
|---|
| 21 | #include "common.h"
|
|---|
| 22 | #include "effect.h"
|
|---|
| 23 | #include "medianode.h"
|
|---|
| 24 |
|
|---|
| 25 | #include <phonon/effectparameter.h>
|
|---|
| 26 | #include <phonon/effectinterface.h>
|
|---|
| 27 |
|
|---|
| 28 | #include <QtCore/QObject>
|
|---|
| 29 |
|
|---|
| 30 | #include <gst/gst.h>
|
|---|
| 31 |
|
|---|
| 32 | #ifndef QT_NO_PHONON_EFFECT
|
|---|
| 33 | QT_BEGIN_NAMESPACE
|
|---|
| 34 | namespace Phonon
|
|---|
| 35 | {
|
|---|
| 36 | namespace Gstreamer
|
|---|
| 37 | {
|
|---|
| 38 | class AudioOutput;
|
|---|
| 39 | class EffectInfo;
|
|---|
| 40 |
|
|---|
| 41 | class AudioEffect : public Effect
|
|---|
| 42 | {
|
|---|
| 43 | Q_OBJECT
|
|---|
| 44 | public:
|
|---|
| 45 | AudioEffect (Backend *backend, int effectId, QObject *parent);
|
|---|
| 46 | protected:
|
|---|
| 47 | GstElement* createEffectBin();
|
|---|
| 48 | GstElement* audioElement() { return m_effectBin; }
|
|---|
| 49 | QString m_effectName;
|
|---|
| 50 | };
|
|---|
| 51 | }} //namespace Phonon::Gstreamer
|
|---|
| 52 | QT_END_NAMESPACE
|
|---|
| 53 | #endif //QT_NO_PHONON_EFFECT
|
|---|
| 54 |
|
|---|
| 55 | #endif // Phonon_GSTREAMER_AUDIOEFFECT_H
|
|---|