diff options
author | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2009-11-03 07:43:11 (GMT) |
---|---|---|
committer | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2009-11-03 12:14:16 (GMT) |
commit | 8ffbb2e7bd2ba0b92aef8d7212ddd47bdcc4411e (patch) | |
tree | a21fe1ac9b085eaf8e1a5374c25d359cb18f3d14 /src | |
parent | 0c7190fa5b6fd5d401854f689676eee8d8591b75 (diff) | |
download | Qt-8ffbb2e7bd2ba0b92aef8d7212ddd47bdcc4411e.zip Qt-8ffbb2e7bd2ba0b92aef8d7212ddd47bdcc4411e.tar.gz Qt-8ffbb2e7bd2ba0b92aef8d7212ddd47bdcc4411e.tar.bz2 |
Fixed volume calculation in Phonon MMF backend
Task-number: QTBUG-4777
Reviewed-by: trustme
Diffstat (limited to 'src')
-rw-r--r-- | src/3rdparty/phonon/mmf/abstractmediaplayer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/3rdparty/phonon/mmf/abstractmediaplayer.cpp b/src/3rdparty/phonon/mmf/abstractmediaplayer.cpp index b8c6fb0..b443194 100644 --- a/src/3rdparty/phonon/mmf/abstractmediaplayer.cpp +++ b/src/3rdparty/phonon/mmf/abstractmediaplayer.cpp @@ -318,7 +318,8 @@ void MMF::AbstractMediaPlayer::doVolumeChanged() case PausedState: case PlayingState: case BufferingState: { - const int err = setDeviceVolume(m_volume * m_mmfMaxVolume); + const qreal volume = (m_volume * m_mmfMaxVolume) + 0.5; + const int err = setDeviceVolume(volume); if (KErrNone != err) { setError(NormalError); |