Changeset 846 for trunk/src/3rdparty/phonon/mmf/audioplayer.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/3rdparty/phonon/mmf/audioplayer.cpp
r769 r846 17 17 */ 18 18 19 #include <QDir> 19 20 #include <QUrl> 20 21 … … 110 111 } 111 112 113 int MMF::AudioPlayer::openFile(const QString &fileName) 114 { 115 const QHBufC nativeFileName(QDir::toNativeSeparators(fileName)); 116 TRAPD(err, m_player->OpenFileL(*nativeFileName)); 117 return err; 118 } 119 112 120 int MMF::AudioPlayer::openFile(RFile& file) 113 121 { … … 127 135 } 128 136 129 int MMF::AudioPlayer::openUrl(const QString& /*url*/ )137 int MMF::AudioPlayer::openUrl(const QString& /*url*/, int /*iap*/) 130 138 { 131 139 // Streaming playback is generally not supported by the implementation … … 138 146 } 139 147 148 int MMF::AudioPlayer::openDescriptor(const TDesC8 &des) 149 { 150 TRAPD(err, m_player->OpenDesL(des)); 151 return err; 152 } 153 140 154 int MMF::AudioPlayer::bufferStatus() const 141 155 { … … 145 159 } 146 160 147 void MMF::AudioPlayer:: close()161 void MMF::AudioPlayer::doClose() 148 162 { 149 163 m_player->Close(); … … 155 169 } 156 170 157 qint64 MMF::AudioPlayer:: currentTime() const158 { 159 TRACE_CONTEXT(AudioPlayer:: currentTime, EAudioApi);171 qint64 MMF::AudioPlayer::getCurrentTime() const 172 { 173 TRACE_CONTEXT(AudioPlayer::getCurrentTime, EAudioApi); 160 174 161 175 TTimeIntervalMicroSeconds us; … … 198 212 TRACE_ENTRY("state %d error %d", state(), aError); 199 213 200 __ASSERT_ALWAYS(LoadingState == state(), Utils::panic(InvalidStatePanic)); 214 __ASSERT_ALWAYS(LoadingState == state() || 215 progressiveDownloadStalled() && BufferingState == state(), 216 Utils::panic(InvalidStatePanic)); 201 217 202 218 if (KErrNone == aError) {
Note:
See TracChangeset
for help on using the changeset viewer.