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. QAudioOutput setVolume set global volume for application on Windows 8.1, Qt5.4-5.5

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.7k 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.
  • A Offline
    A Offline
    Audio
    wrote on last edited by
    #1

    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
    0
    • A Offline
      A Offline
      Audio
      wrote on last edited by
      #2

      How to fix it?

      1 Reply Last reply
      0
      • Chris KawaC Offline
        Chris KawaC Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on last edited by Chris Kawa
        #3

        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
        0
        • A Offline
          A Offline
          Audio
          wrote on last edited by
          #4

          Hi, I voted this issue, thanks.

          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