summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon/mmf/audioplayer.h
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-07-28 13:05:52 (GMT)
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-08-02 08:58:25 (GMT)
commit4cf313be8d440e2ef9bdb4a586fbcba20c3ee317 (patch)
treeedba06c512c326287859d49ac7fdd0f1dbc4c9bf /src/3rdparty/phonon/mmf/audioplayer.h
parent9a059c53caaf19cd2ff722df6e47870a2843ee43 (diff)
downloadQt-4cf313be8d440e2ef9bdb4a586fbcba20c3ee317.zip
Qt-4cf313be8d440e2ef9bdb4a586fbcba20c3ee317.tar.gz
Qt-4cf313be8d440e2ef9bdb4a586fbcba20c3ee317.tar.bz2
Added support to Phonon MMF backend for playback of Qt resource files
The backend accesses the resource file path via MediaSource::url(). A small patch to Phonon was required to enable this, because by default, Phonon passes a QIODevice, rather than the resource file path, to the backend. The backend uses this path to create a QResource object, through which the memory buffer into which the resource file has been read can be accessed. This buffer is wrapped in a Symbian 8-bit descriptor and passed to the OpenDesL() function of the appropriate MMF client utility API. Task-number: QTBUG-6562
Diffstat (limited to 'src/3rdparty/phonon/mmf/audioplayer.h')
-rw-r--r--src/3rdparty/phonon/mmf/audioplayer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/3rdparty/phonon/mmf/audioplayer.h b/src/3rdparty/phonon/mmf/audioplayer.h
index 0eb8bb7..e43cadd 100644
--- a/src/3rdparty/phonon/mmf/audioplayer.h
+++ b/src/3rdparty/phonon/mmf/audioplayer.h
@@ -67,6 +67,7 @@ typedef CMdaAudioPlayerUtility NativePlayer;
virtual int setDeviceVolume(int mmfVolume);
virtual int openFile(RFile& file);
virtual int openUrl(const QString& url);
+ virtual int openDescriptor(const TDesC8 &des);
virtual int bufferStatus() const;
virtual void close();