Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Phonon: only one output device
Forum Updated to NodeBB v4.3 + New Features

Phonon: only one output device

Scheduled Pinned Locked Moved General and Desktop
15 Posts 2 Posters 3.5k 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.
  • S Offline
    S Offline
    skoczo
    wrote on last edited by
    #6

    Do you have some examples how to do that? I know how to play (raw formats)wave but how to play mp3 or internet radio using QtMultimedia?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #7

      QMediaPlayer comes to mind

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        skoczo
        wrote on last edited by
        #8

        In QMediaPlayer i can't found way to set output device.
        Do you know how to set it? I even looked at the code but i don't know how it works :/

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #9

          AFAIK, you can't just simply set it. You have to get a QAudioEndpointSelector from QMediaPlayer. However it might not be implement in all backends

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • S Offline
            S Offline
            skoczo
            wrote on last edited by
            #10

            I have Qt 5.3.1 and can't find QAudioEndpointSelector class.
            About what version Qt you are talking about? Do you have an example?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #11

              Sorry, my bad it's a class from QtMobility, it's QAudioOutputSelectorControl that I was thinking about

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • S Offline
                S Offline
                skoczo
                wrote on last edited by
                #12

                What the qt-mobility is? It sounds like lib for mobile devices. Can i use it in desktop app?

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #13

                  It was for the Qt 4 series, some of the classes have been integrated in Qt 5 others might need porting.

                  Yes you can,

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    skoczo
                    wrote on last edited by
                    #14

                    I don't know how to do that.
                    Maybe you know some other C++ library than qt where can i play music on multiple sound cards? I use it on linux and want play music from internet radio.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #15

                      You can have a look at GStreamer and QGStreamer

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      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