Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. No sound on Symbian^3 with Phonon
Forum Updated to NodeBB v4.3 + New Features

No sound on Symbian^3 with Phonon

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 4 Posters 4.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    grego
    wrote on last edited by
    #1

    Santa brought me a C7, a Symbian 3 device. Much to my surprise I discovered
    that the Phonon code I had been happily using on 5800XM to play sounds was
    completely silent on C7, using the Qt built in the device.

    The following function is what I'm using:

    @void MainWindow::soundAlarm(const QListPhonon::MediaSource &sounds,
    qreal volume, bool vibrate)
    {
    #ifdef Q_OS_SYMBIAN
    if (iVibra && vibrate) {
    TRAPD(error,
    iVibra->StartVibraL(5000);
    );
    Q_UNUSED(error)
    }
    #endif

    _audioOutput->setVolume(volume);
    // Lots of trial and error to get this thing to play correct number of times
    // The below seems to work
    _mediaObject->setCurrentSource(sounds.at(0));
    for (int i = 1; i < sounds.length(); ++i)
    _mediaObject->enqueue(sounds.at(i));

    // _mediaObject->setQueue(sounds);
    // _mediaObject->setCurrentSource(sounds.at(0)); I would have expected this
    line to suffice

    _mediaObject->play();
    }
    @

    I have a faint recollection on seeing some mention of Symbian 3 volume
    handling having changed, or something, but I haven't yet found any existing
    bug report that would explain this.

    Any ideas?

    Thanks,

    Grego - http://mpaja.com/

    1 Reply Last reply
    0
    • M Offline
      M Offline
      milot.shala
      wrote on last edited by
      #2

      Which Qt version are you using?

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DenisKormalev
        wrote on last edited by
        #3

        Milot, as he said in his post

        bq. using the Qt built in the device.

        So it should be 4.6.3 I think

        1 Reply Last reply
        0
        • M Offline
          M Offline
          milot.shala
          wrote on last edited by
          #4

          [quote author="Denis Kormalev" date="1293363496"]Milot, as he said in his post

          bq. using the Qt built in the device.

          So it should be 4.6.3 I think[/quote]

          I see, because it might be a problem with Qt 4.7 but now it's different I think.

          @grego

          This can be a problem with MMF (Symbian^3's multimedia framework) see "here":http://doc.qt.nokia.com/stable/platform-notes-symbian.html#multimedia-and-phonon-support because it's still experimental and you should look for Helix framework which is not shipped with Qt but you can look into it "here":http://wiki.forum.nokia.com/index.php/Phonon_Helix_plug-in_fixes_for_Symbian^3_devices

          1 Reply Last reply
          0
          • G Offline
            G Offline
            grego
            wrote on last edited by
            #5

            Thanks for the tip, indeed it seems that my issue was QTBUG-13952 which is also affecting C7.
            The Smart Installer is not smart enough yet to fix it.

            Grego - http://mpaja.com/

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              qtrahul
              wrote on last edited by
              #6

              The device you are using has Qt inbuilt and it is Qt 4.6.3.

              Phonon API was the deprecated API and it was used in Qt mobile extension project.
              (if I am not wrong)

              Instead you should use the Qt Multimedia API under the Qt mobility project.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved