Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.2
-
None
-
Windows 7
Windows XP
Mac
-
f424e8249b7b83d7d8f5a353161d2cc093840beb
Description
QSoundEffect does not actually play sound. Additionally, there is no output indicating errors.
This can be verified most simply by using a QML SoundEffect element, pointing it to an audio file and playing it. Although this issue occurs if using the QSoundEffect class directly in C++.
The problem is that QAudioOutput (used by QSoundEffect on Windows) picks the first available output device as the default one instead of checking what is the system default. The problem is the same for QAudioInput.