Created attachment 1495717 [details] Proposed fix Description of problem: It hardcodes hw:0,0 which is really bad. If your system default sound card is e.g. hw:1,0 you have no way how to get audio from the QAudio (not counting unloading all sound modules and loading them in different order), Version-Release number of selected component (if applicable): qt-x11-4.8.7-31.fc27 How reproducible: Always Steps to Reproduce: 1. Set default system audio to device 2 2. Start QT app, e.g. cutecw Actual results: No sound from the system default device Expected results: Sound from the system default device Additional info: It happens because the ifdef condition in the QT code doesn't count with the ALSA 1.1.X and wrongly uses code for ancient ALSA release with the hardcoded hw:0,0. With ALSA 1.0.X it works as expected.
It's even worse if you have e.g. HDMI device on hw:0,0, which is disconnected (e.g. no HDMI cable connected), and you have connected analog speaker phones through the stereo jack. In such case you will get no sound, even if you set the analog output device explicitly in the QAudioOutput constructor, because the QT code still hardcodes hw:0,0 and the explicit AudioDevice from the constructor is ignored.
hw:ANYTHING is wrong to begin with. It should be using the pulse device, or preferably libpulse directly. But Qt 4 is no longer maintained upstream. I don't think this kind of bugs will ever be fixed in it. The application needs to be ported to Qt 5.
Actually, the patch you submitted looks simple enough to apply, I can do that. I'm still not convinced it will do the right thing in a modern PulseAudio setup, but it can't be worse than hardcoding hw:0,0.
Building for Rawhide now, then I'll build F29, F28 and F27.
Unfortunately, the F29 build failed due to the F29 buildroot being broken: DEBUG util.py:439: Problem: package cups-devel-1:2.2.8-5.fc29.x86_64 requires gnutls-devel, but none of the providers can be installed DEBUG util.py:439: - package gnutls-devel-3.6.4-1.fc29.x86_64 requires libgnutls-dane.so.0()(64bit), but none of the providers can be installed DEBUG util.py:439: - conflicting requests DEBUG util.py:439: - nothing provides libunbound.so.2()(64bit) needed by gnutls-dane-3.6.4-1.fc29.x86_64
Rawhide, F28 and F27 built, but getting an update out is blocked on somebody unbreaking the F29 buildroot. Sorry.
New attempt: https://koji.fedoraproject.org/koji/taskinfo?taskID=30337730 now that the offending unbound buildroot override apparently expired: https://bodhi.fedoraproject.org/overrides/unbound-1.8.1-1.fc29
qt-4.8.7-44.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-fef9d9176e
qt-4.8.7-44.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-f2829fc1e6
qt-4.8.7-44.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-5f573e7590
Use: sudo dnf --enablerepo=updates-testing --advisory=FEDORA-2018-5f573e7590 update to test this update on F27. (Users of F28 or F29 will want to substitute the relevant update ID.)
qt-4.8.7-44.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-5f573e7590
qt-4.8.7-44.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-f2829fc1e6
qt-4.8.7-44.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-fef9d9176e
*** Bug 1509677 has been marked as a duplicate of this bug. ***
qt-4.8.7-44.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.
qt-4.8.7-44.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
qt-4.8.7-44.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.