Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.5.0
-
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 |
172750,2 | WindowsAudio: fix volume when using multiple QAudioOutputs | 5.6 | qt/qtmultimedia | Status: MERGED | +2 | 0 |