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. QSound in 5.2 Beta 1 on iOS / Mac does not work (?)
QtWS25 Last Chance

QSound in 5.2 Beta 1 on iOS / Mac does not work (?)

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 2 Posters 3.4k Views
  • 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.
  • S Offline
    S Offline
    syfy323
    wrote on 6 Nov 2013, 14:29 last edited by
    #1

    Hello,

    I have this code:
    @QSound *sound=new QSound(":/sounds/files/sounds/sound.wav");
    sound->play();@

    It doesn't work with relative or absolute paths.

    I am on a Mac Book Pro Retina with OS X 10.9 / iOS Simulator, Qt 5.2 B1.

    The sound does not play on my mac, I tested several wav files - none worked.
    As I need to include "multimedia" at "QT" in my ".pro" for QSound, it compiles successfull. On iOS Build settings it fails because the module is unknown.

    What should I do? Did someone get sound out of Qt on iOS?

    @ QMediaPlayer *player = new QMediaPlayer;
    player->setMedia(QUrl::fromLocalFile("/Users/me/Documents/QtProjects/pro-ject/files/sounds/sound.wav"));
    player->setVolume(50);
    player->play();@

    This works but needs QT += multimedia.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      Gianluca
      wrote on 7 Nov 2013, 08:21 last edited by
      #2

      There are some known issues on iOS Multimedia module that affects the 5.2.0 beta 1
      They will be resolved before the final release of Qt 5.2, for now you should wait... or you can try to download sources from GIT and compile by yourself to check if the bugs has been already resolved.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        syfy323
        wrote on 7 Nov 2013, 08:25 last edited by
        #3

        Thanks for your reply.

        I compiled the last snapshot but it was failing for me.
        Later I was able to install the mac ios package by unpacking it (the package signature is damaged).

        So far no multimedia support. I will just wait, its just a beta, just wanted to make sure multimedia is planned for release (even if its only basic functional).

        thanks.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          syfy323
          wrote on 17 Nov 2013, 18:09 last edited by
          #4

          I was able to compile the submodule and start the app in the simulator.

          I hope multimedia will be working in the release as I get this message atm:
          @using null output device, none available @
          when using QSound on iOS (the error is thrown when calling QSound::play).

          For QMediaPlayer:
          @ playlist->addMedia(QUrl("http://www.example.com/example.mp3"));
          playlist->addMedia(QUrl("http://www.example.com/example.mp3"));
          QMediaPlayer *player2 = new QMediaPlayer;
          player2->setPlaylist(playlist);
          player2->play();@

          @defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"@

          1 Reply Last reply
          0
          • S Offline
            S Offline
            syfy323
            wrote on 18 Dec 2013, 18:28 last edited by
            #5

            Hello,

            is there still no sound support in iPhoneOS-Simulator? I did not get it to work.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              syfy323
              wrote on 19 Dec 2013, 18:37 last edited by
              #6

              Same problem on device itself - no sound. Any ideas?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                syfy323
                wrote on 20 Dec 2013, 09:59 last edited by
                #7

                https://bugreports.qt-project.org/browse/QTBUG-35755

                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