Changeset 651 for trunk/src/3rdparty/phonon/mmf/abstractaudioeffect.h
- Timestamp:
- Mar 8, 2010, 12:52:58 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/3rdparty/phonon/mmf/abstractaudioeffect.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.2 (added) merged: 650 /branches/vendor/nokia/qt/current merged: 649 /branches/vendor/nokia/qt/4.6.1 removed
- Property svn:mergeinfo changed
-
trunk/src/3rdparty/phonon/mmf/abstractaudioeffect.h
r561 r651 24 24 #include <AudioEffectBase.h> 25 25 26 #include <Phonon/effectinterface.h> 27 #include <Phonon/effectparameter.h> 26 #include <phonon/effectinterface.h> 28 27 29 28 #include "audioplayer.h" 29 30 30 #include "mmf_medianode.h" 31 31 #include "mmf_videoplayer.h" 32 33 32 34 33 35 QT_BEGIN_NAMESPACE … … 37 39 namespace MMF 38 40 { 41 39 42 class AbstractMediaPlayer; 40 43 … … 64 67 const QList<EffectParameter> ¶ms); 65 68 66 virtual QList<EffectParameter> parameters() const; 67 virtual QVariant parameterValue(const EffectParameter ¶m) const; 68 virtual void setParameterValue(const EffectParameter &, 69 // Phonon::EffectInterface 70 virtual QList<Phonon::EffectParameter> parameters() const; 71 virtual QVariant parameterValue(const Phonon::EffectParameter ¶m) const; 72 virtual void setParameterValue(const Phonon::EffectParameter &, 69 73 const QVariant &newValue); 70 74 71 enum Type 75 // Parameters which are shared by all effects 76 enum CommonParameters 72 77 { 73 EffectAudioEqualizer = 1, 74 EffectBassBoost, 75 EffectDistanceAttenuation, 76 EffectEnvironmentalReverb, 77 EffectListenerOrientation, 78 EffectLoudness, 79 EffectSourceOrientation, 80 EffectStereoWidening 78 ParameterEnable = 0, 79 ParameterBase // must be last entry in enum 81 80 }; 81 82 83 84 85 82 86 83 87 protected: … … 86 90 void disconnectMediaObject(MediaObject *mediaObject); 87 91 88 virtual void connectAudioPlayer(AudioPlayer::NativePlayer *player) = 0; 89 virtual void applyParameters() = 0; 92 virtual void createEffect(AudioPlayer::NativePlayer *player) = 0; 90 93 91 virtual void parameterChanged(const int id, 92 const QVariant &value) = 0; 94 // Effect-specific parameter changed 95 virtual int effectParameterChanged(const EffectParameter ¶m, 96 const QVariant &value); 97 98 private: 99 void createEffect(); 100 void setEnabled(bool enabled); 101 const EffectParameter& internalParameter(int id) const; 102 int parameterChanged(const EffectParameter ¶m, 103 const QVariant &value); 93 104 94 105 protected: … … 96 107 97 108 private: 109 98 110 AbstractMediaPlayer * m_player; 99 const QList<EffectParameter> m_params;100 111 QHash<int, QVariant> m_values; 101 112 }; … … 104 115 } 105 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 106 136 QT_END_NAMESPACE 107 137
Note:
See TracChangeset
for help on using the changeset viewer.
