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. Support for multiple instances of QAudioOutput using multiple Qt threads
Forum Updated to NodeBB v4.3 + New Features

Support for multiple instances of QAudioOutput using multiple Qt threads

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 3 Posters 2.1k Views 2 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.
  • Q Offline
    Q Offline
    Qwerty123
    wrote on last edited by
    #1

    Is it possible to playback multiple audio streams (simultaneously) by instantiating multiple instances of QAudioOutput (each in their own Qt thread)?

    The Qt documentation is not particularly clear in this regard.

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

      Hi and welcome to devnet,

      Do you want to play several files each on a different speaker ?

      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
      • Q Offline
        Q Offline
        Qwerty123
        wrote on last edited by
        #3

        Hi SGaist - no real intention to play on different speakers, would ideally just like to play on one.

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

          So mixing the content of different files ?

          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
          • SGaistS SGaist

            So mixing the content of different files ?

            ? Offline
            ? Offline
            A Former User
            wrote on last edited by A Former User
            #5

            @SGaist I didn't want to interfere last night by intervening with a post, but a Mixer came to mind immediately. since that's an area of particular interest to me!

            Q 1 Reply Last reply
            0
            • ? A Former User

              @SGaist I didn't want to interfere last night by intervening with a post, but a Mixer came to mind immediately. since that's an area of particular interest to me!

              Q Offline
              Q Offline
              Qwerty123
              wrote on last edited by
              #6

              I guess I was looking for the simplest solution - I thought that by (say) having two instances of QAudioOutput that I could potentially playback two audio streams simultaneously and have the OS handle any mixing - thereby avoiding need for own mixing step. Would this be possible?

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

                What OS do you have in mind ?

                Note that running a small test case would likely have gotten you the answer sooner.

                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
                • Q Offline
                  Q Offline
                  Qwerty123
                  wrote on last edited by
                  #8

                  SGaist - this would be for Windows.

                  ? 1 Reply Last reply
                  0
                  • Q Qwerty123

                    SGaist - this would be for Windows.

                    ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by A Former User
                    #9

                    @Qwerty123 Sorry to butt in again. Get Audacity! Add your two Audio Files. Pan them Left&Right in the stereo field and Export. One file with both Audio Sources. Now you only need one instance of QAudioOutput. (Be careful with audio levels and unwanted frequencies like too much bass - less is more!)

                    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