Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Qt on BlackBerry and QNX
  4. Object similar to phonon to play sound
Forum Updated to NodeBB v4.3 + New Features

Object similar to phonon to play sound

Scheduled Pinned Locked Moved Qt on BlackBerry and QNX
12 Posts 5 Posters 4.8k 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.
  • A Offline
    A Offline
    AlterX
    wrote on last edited by
    #1

    Hello, I am porting an app on bb but i need an object to play sounds with queue capability. Is there something like that?!

    Qt Ambassador
    Real-time cooperative teams: http://www.softairrealfight.net
    Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

    https://codereview.qt-project.org/...

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      I think you've missed a few letters in your topic's title :)

      (Z(:^

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AlterX
        wrote on last edited by
        #3

        Yes...i have seen that :)

        Qt Ambassador
        Real-time cooperative teams: http://www.softairrealfight.net
        Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

        https://codereview.qt-project.org/...

        1 Reply Last reply
        0
        • B Offline
          B Offline
          Bomb3rman
          wrote on last edited by
          #4

          Did you already look into QtMultimediaKit (Qt4) or QtMultimedia(qt5)?

          1 Reply Last reply
          0
          • A Offline
            A Offline
            AlterX
            wrote on last edited by
            #5

            [quote author="Bomb3rman" date="1358446965"]Did you already look into QtMultimediaKit (Qt4) or QtMultimedia(qt5)?[/quote]

            I've tried MediaPlayer (bb) and QMediaPlayer in cpp files without success; SoundEffect doesn't fit the ability to play sounds using queue.

            Qt Ambassador
            Real-time cooperative teams: http://www.softairrealfight.net
            Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

            https://codereview.qt-project.org/...

            1 Reply Last reply
            0
            • C Offline
              C Offline
              codenode
              wrote on last edited by
              #6

              There is a QMediaPlaylist class, but I'm not sure if thats new in Qt5...

              1 Reply Last reply
              0
              • A Offline
                A Offline
                AlterX
                wrote on last edited by
                #7

                I mean, I'm trying to use QMediaPlayer or MediaPlayer (bb) in cpp backend but I'm not able to hear something.
                I've tried with "/qml/file.wav", ":/sounds/file.wav" and "qrc:/sounds/file.wav".
                SoundEffect on qml side, as I've told, works, but it causes to mix sounds if there are two or more clips...
                I'm really stuck on this, I've just completed the app except this issue and so I cannot release the game
                :(

                Qt Ambassador
                Real-time cooperative teams: http://www.softairrealfight.net
                Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

                https://codereview.qt-project.org/...

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  codenode
                  wrote on last edited by
                  #8

                  Have you looked at the Media Player documentation?

                  https://developer.blackberry.com/cascades/reference/multimedia_mediaplayer.html

                  And I think, this is what you are looking for:

                  https://developer.blackberry.com/cascades/reference/bb__multimedia__mediaplayer.html#setsourceurl

                  Its just not telling you, what kind of playlist it expects. There is no addTrack or something.

                  But there seems to be a Playback Completed Signal, which could solve your problem, you'll just have to emulate the Playlist outside.
                  Which should not be to hard, a list of the songs to play, and an iterator/index should do.

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    AlterX
                    wrote on last edited by
                    #9

                    I ba e looked at all of that: cascades mediaplayer,qmediaplayer...i ha e tried to play mp3 and wav, using path or resources. No one is able to reproduce sounds! I am using my own qml thru js that call my internal qml object (using cpp and qmlregistertype). Moreover i ha e tried to use bb mediaplayer directly in the main file without sound as well

                    Qt Ambassador
                    Real-time cooperative teams: http://www.softairrealfight.net
                    Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

                    https://codereview.qt-project.org/...

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      codenode
                      wrote on last edited by
                      #10

                      Well, MediaPlayer will only work with Cascades, not with custom QML I would guess.
                      Try set up a test app with cascades with MediaPlayer testing this.

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        AlterX
                        wrote on last edited by
                        #11

                        Mediaplayer can work with Qt as reported on rim site

                        Qt Ambassador
                        Real-time cooperative teams: http://www.softairrealfight.net
                        Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

                        https://codereview.qt-project.org/...

                        1 Reply Last reply
                        0
                        • J Offline
                          J Offline
                          john_god
                          wrote on last edited by
                          #12

                          Is there any player in example / demo in que Qt that you can try porting out of the box to bb10 to see if it plays sound ? I was having a OpenGL problem in BB10, I solve it by using the cube example and comparing with my code.

                          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