summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon/mmf/audioplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/phonon/mmf/audioplayer.cpp')
-rw-r--r--src/3rdparty/phonon/mmf/audioplayer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/3rdparty/phonon/mmf/audioplayer.cpp b/src/3rdparty/phonon/mmf/audioplayer.cpp
index 127b921..17294a7 100644
--- a/src/3rdparty/phonon/mmf/audioplayer.cpp
+++ b/src/3rdparty/phonon/mmf/audioplayer.cpp
@@ -93,7 +93,13 @@ void MMF::AudioPlayer::doSeek(qint64 ms)
int MMF::AudioPlayer::setDeviceVolume(int mmfVolume)
{
+ /* In SDK 3.1, this function is void. */
+#if !defined(__SERIES60_31__)
return m_player->SetVolume(mmfVolume);
+#else
+ m_player->SetVolume(mmfVolume);
+ return KErrNone;
+#endif
}
int MMF::AudioPlayer::openFile(RFile& file)