summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon/mmf/audiooutput.h
diff options
context:
space:
mode:
authorGareth Stockwell <gareth.stockwell@sosco.com>2009-08-20 11:24:03 (GMT)
committerGareth Stockwell <gareth.stockwell@sosco.com>2009-08-20 11:24:03 (GMT)
commitf695026fce1c20fdf4ca101dd7ac8da291ecf381 (patch)
tree0c91366ad6e53ecf0cf985aa3e98ff1fdab433be /src/3rdparty/phonon/mmf/audiooutput.h
parent991fb666cd7ba1d543156980bdc601309ec2c434 (diff)
downloadQt-f695026fce1c20fdf4ca101dd7ac8da291ecf381.zip
Qt-f695026fce1c20fdf4ca101dd7ac8da291ecf381.tar.gz
Qt-f695026fce1c20fdf4ca101dd7ac8da291ecf381.tar.bz2
Added VolumeControlInterface to abstract details of path between MediaObject and AudioOutput
Diffstat (limited to 'src/3rdparty/phonon/mmf/audiooutput.h')
-rw-r--r--src/3rdparty/phonon/mmf/audiooutput.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/3rdparty/phonon/mmf/audiooutput.h b/src/3rdparty/phonon/mmf/audiooutput.h
index 5e4fef2..b8290c7 100644
--- a/src/3rdparty/phonon/mmf/audiooutput.h
+++ b/src/3rdparty/phonon/mmf/audiooutput.h
@@ -26,16 +26,13 @@ namespace Phonon
namespace MMF
{
class Backend;
- class MediaObject;
+ class VolumeControlInterface;
/**
* @short AudioOutputInterface implementation for MMF.
*
- * Implements the AudioOutputInterface for Symbian/S60's MMF
- * framework.
- *
- * This class has a very small role, we simply access CDrmPlayerUtility
- * in MediaObject::m_player and forward everything there.
+ * Forwards volume commands to the VolumeControlInterface instance,
+ * provided by the backend.
*
* \section volume Volume
*
@@ -69,20 +66,25 @@ namespace Phonon
*/
virtual bool setOutputDevice(const Phonon::AudioOutputDevice &);
- void setMediaObject(MediaObject *mo);
+ void setVolumeControl(VolumeControlInterface *volumeControl);
/**
* Called by MediaObject to pass initial volume when clip has been
* successfully opened
*/
- void triggerVolumeChanged(qreal volume);
+ //void triggerVolumeChanged(qreal volume);
Q_SIGNALS:
void volumeChanged(qreal volume);
void audioDeviceFailed();
private:
- MediaObject * m_mediaObject;
+ /**
+ * This value is used when m_volumeControl is NULL.
+ */
+ qreal m_volume;
+
+ VolumeControlInterface * m_volumeControl;
};
}
}