diff options
author | Frans Englich <frans.englich@nokia.com> | 2009-08-12 14:11:00 (GMT) |
---|---|---|
committer | Frans Englich <frans.englich@nokia.com> | 2009-08-12 14:16:51 (GMT) |
commit | 44265f30fb40baaecd4cda1b5aca0efeed6abc20 (patch) | |
tree | 64d08be182c0d99ec4218408f97f01b0d6a2d351 /src/3rdparty/phonon/mmf/audiooutput.h | |
parent | 4cd7180ad3365c0e8eef8a22c825f3289a799ab0 (diff) | |
download | Qt-44265f30fb40baaecd4cda1b5aca0efeed6abc20.zip Qt-44265f30fb40baaecd4cda1b5aca0efeed6abc20.tar.gz Qt-44265f30fb40baaecd4cda1b5aca0efeed6abc20.tar.bz2 |
Commit patch by Gareth.
The patch originally contained all changed done to MMF Phonon, but this
commit contains the changes only Gareth did.
Diffstat (limited to 'src/3rdparty/phonon/mmf/audiooutput.h')
-rw-r--r-- | src/3rdparty/phonon/mmf/audiooutput.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/3rdparty/phonon/mmf/audiooutput.h b/src/3rdparty/phonon/mmf/audiooutput.h index 8c0de1f..5e4fef2 100644 --- a/src/3rdparty/phonon/mmf/audiooutput.h +++ b/src/3rdparty/phonon/mmf/audiooutput.h @@ -55,7 +55,7 @@ namespace Phonon public: AudioOutput(Backend *backend, QObject *parent); virtual qreal volume() const; - virtual void setVolume(qreal); + virtual void setVolume(qreal volume); virtual int outputDevice() const; @@ -71,13 +71,18 @@ namespace Phonon void setMediaObject(MediaObject *mo); + /** + * Called by MediaObject to pass initial volume when clip has been + * successfully opened + */ + void triggerVolumeChanged(qreal volume); + Q_SIGNALS: - void volumeChanged(qreal newVolume); + void volumeChanged(qreal volume); + void audioDeviceFailed(); private: MediaObject * m_mediaObject; - qreal m_volume; - TInt m_maxVolume; }; } } |