Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-48049

QSound overrides system volume settings and sets it to max (Windows)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.6.3, 5.7.2, 5.8.0
    • 5.5.0
    • Multimedia
    • None
    • Tested on Windows 7
    • 4663063d021a76e7662813438f72fcfb42ff2252

    Description

      Steps to repro:
      1. Use QSound in your application and play some wav files.
      2. Open Volume Mixer, find your application and decrease volume to e.g. half of scale.
      3. Play sound again in your app.

      Expected result:
      Sound volume does not change.

      Actual result:
      Sound volume in system Volume Mixer for the application is back to max.

      After some investigation it looks like this is caused by QWindowsAudioOutput::open() function where setVolume(volumeCache) is called. volumeCache is always set to 1.0 (max) and every time you play a play a sound it overrides existing volume with volumeCache.

      Attachments

        For Gerrit Dashboard: QTBUG-48049
        # Subject Branch Project Status CR V

        Activity

          People

            ylopes Yoann Lopes
            dakron Pawel Kurdybacha
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes