Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved QAudioOutput setVolume set global volume for application on Windows 8.1, Qt5.4-5.5

    General and Desktop
    2
    4
    1463
    Loading More Posts
    • 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
      Audio last edited by

      I create several QAudioOutput instances, and setVolume for each instance change global volume of application, not for QAudioOutput instance.

      This reproduces on Windows 8.1, Qt 5.4 or 5.5. On OSX not reproduces.

      1 Reply Last reply Reply Quote 0
      • A
        Audio last edited by

        How to fix it?

        1 Reply Last reply Reply Quote 0
        • Chris Kawa
          Chris Kawa Moderators last edited by Chris Kawa

          Hi, welcome to devnet.

          I'm looking at the implementation and it seems to be a Qt bug specific to Windows platform. The volume control uses waveOutSetVolume. The docs say it takes a device identifier or device handle. The first one controls the volume of all device instances while the other just the instance identified by that handle. Qt seems to be using the wrong version across all its multimedia functions. A similar bug QTBUG-43765 has already been reported. You may want to vote for it and leave your comment there.

          Looking at it there's not much you can do in terms of a workaround until it gets fixed :(

          1 Reply Last reply Reply Quote 0
          • A
            Audio last edited by

            Hi, I voted this issue, thanks.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post