-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy patheffect.h
74 lines (58 loc) · 2.52 KB
/
effect.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
Copyright (C) 2007-2008 Tanguy Krotoff <[email protected]>
Copyright (C) 2008 Lukas Durfina <[email protected]>
Copyright (C) 2009 Fathi Boudra <[email protected]>
Copyright (C) 2009-2011 vlc-phonon AUTHORS <[email protected]>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PHONON_MPV_EFFECT_H
#define PHONON_MPV_EFFECT_H
#include "sinknode.h"
#include "effectmanager.h"
#include <phonon/effectinterface.h>
#include <phonon/effectparameter.h>
namespace Phonon::MPV {
class EffectManager;
/** \brief Effect implementation for Phonon-VLC
*
* There are methods to get or set the effect parameters, implemented for
* the EffectInterface. See the Phonon documentation for details.
*
* As a sink node, it provides methods to handle the connection to a media object.
*
* An effect manager is the parent of each effect.
*
* \see EffectManager
* \see VolumeFaderEffect
*/
class Effect: public QObject, public SinkNode, public EffectInterface {
Q_OBJECT
Q_INTERFACES(Phonon::EffectInterface)
public:
Effect(EffectManager* p_em, int i_effectId, QObject* p_parent);
~Effect();
void setupEffectParams();
QList<EffectParameter> parameters() const Q_DECL_OVERRIDE;
QVariant parameterValue(const EffectParameter& param) const Q_DECL_OVERRIDE;
void setParameterValue(const EffectParameter& param, const QVariant& newValue) Q_DECL_OVERRIDE;
/** \reimp */
void handleConnectToMediaObject(MediaObject* p_media_object) Q_DECL_OVERRIDE;
/** \reimp */
void handleDisconnectFromMediaObject(MediaObject* p_media_object) Q_DECL_OVERRIDE;
private:
EffectManager* p_effectManager;
int i_effect_filter;
EffectInfo::Type effect_type;
QList<Phonon::EffectParameter> parameterList;
};
} // Namespace Phonon::MPV
#endif // PHONON_MPV_EFFECT_H