Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/3rdparty/phonon/mmf/audioplayer.cpp

    r769 r846  
    1717*/
    1818
     19#include <QDir>
    1920#include <QUrl>
    2021
     
    110111}
    111112
     113int 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
    112120int MMF::AudioPlayer::openFile(RFile& file)
    113121{
     
    127135}
    128136
    129 int MMF::AudioPlayer::openUrl(const QString& /*url*/)
     137int MMF::AudioPlayer::openUrl(const QString& /*url*/, int /*iap*/)
    130138{
    131139    // Streaming playback is generally not supported by the implementation
     
    138146}
    139147
     148int MMF::AudioPlayer::openDescriptor(const TDesC8 &des)
     149{
     150    TRAPD(err, m_player->OpenDesL(des));
     151    return err;
     152}
     153
    140154int MMF::AudioPlayer::bufferStatus() const
    141155{
     
    145159}
    146160
    147 void MMF::AudioPlayer::close()
     161void MMF::AudioPlayer::doClose()
    148162{
    149163    m_player->Close();
     
    155169}
    156170
    157 qint64 MMF::AudioPlayer::currentTime() const
    158 {
    159     TRACE_CONTEXT(AudioPlayer::currentTime, EAudioApi);
     171qint64 MMF::AudioPlayer::getCurrentTime() const
     172{
     173    TRACE_CONTEXT(AudioPlayer::getCurrentTime, EAudioApi);
    160174
    161175    TTimeIntervalMicroSeconds us;
     
    198212    TRACE_ENTRY("state %d error %d", state(), aError);
    199213
    200     __ASSERT_ALWAYS(LoadingState == state(), Utils::panic(InvalidStatePanic));
     214    __ASSERT_ALWAYS(LoadingState == state() ||
     215                    progressiveDownloadStalled() && BufferingState == state(),
     216                    Utils::panic(InvalidStatePanic));
    201217
    202218    if (KErrNone == aError) {
Note: See TracChangeset for help on using the changeset viewer.