summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon/mmf/mediaobject.h
diff options
context:
space:
mode:
authorFrans Englich <frans.englich@nokia.com>2009-08-26 14:36:32 (GMT)
committerGareth Stockwell <gareth.stockwell@sosco.com>2009-09-09 13:35:38 (GMT)
commit7d2d15bbc9d598daf94800b576aff19a68119ed1 (patch)
tree61f881bda38b0559db6543ed87b55089e64ef25e /src/3rdparty/phonon/mmf/mediaobject.h
parentc4d341ecf26d63cc7410756f8f7d1926c277f02f (diff)
downloadQt-7d2d15bbc9d598daf94800b576aff19a68119ed1.zip
Qt-7d2d15bbc9d598daf94800b576aff19a68119ed1.tar.gz
Qt-7d2d15bbc9d598daf94800b576aff19a68119ed1.tar.bz2
Work on extending the framework for accomodating effects.
This extends the framework for being able to handle audio effects, largely affecting how the audio chain is set up, connected and disconnected, and therefore the Backend has been refactored slightly, and the class MediaNode introduced, see its documentation. In addition two effects has been written: BassBoost and AudioEqualizer.
Diffstat (limited to 'src/3rdparty/phonon/mmf/mediaobject.h')
-rw-r--r--src/3rdparty/phonon/mmf/mediaobject.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/3rdparty/phonon/mmf/mediaobject.h b/src/3rdparty/phonon/mmf/mediaobject.h
index c53b908..1f19068 100644
--- a/src/3rdparty/phonon/mmf/mediaobject.h
+++ b/src/3rdparty/phonon/mmf/mediaobject.h
@@ -27,6 +27,8 @@ along with this library. If not, see <http://www.gnu.org/licenses/>.
// For recognizer
#include <apgcli.h>
+#include "abstractplayer.h"
+#include "mmf_medianode.h"
#include "defs.h"
#include "volumeobserver.h"
@@ -42,9 +44,9 @@ class VideoOutput;
/**
* @short Facade class which wraps MMF client utility instance
*/
-class MediaObject : public QObject
- , public MediaObjectInterface
- , public VolumeObserver
+class MediaObject : public MediaNode
+ , public MediaObjectInterface
+ , public VolumeObserver
{
Q_OBJECT
Q_INTERFACES(Phonon::MediaObjectInterface)
@@ -78,7 +80,14 @@ public:
// VolumeObserver
void volumeChanged(qreal volume);
- void setVideoOutput(VideoOutput* videoOutput);
+ // MediaNode
+ virtual bool connectMediaNode(MediaNode *target);
+
+ /**
+ * This class owns the AbstractPlayer, and will delete it upon
+ * destruction.
+ */
+ AbstractPlayer *abstractPlayer() const;
Q_SIGNALS:
void totalTimeChanged(qint64 length);
@@ -109,6 +118,8 @@ private:
static qint64 toMilliSeconds(const TTimeIntervalMicroSeconds &);
private:
+ void setVideoOutput(VideoOutput* videoOutput);
+
// Audio / video media type recognition
bool m_recognizerOpened;
RApaLsSession m_recognizer;