I had bookmarked this page so I could test it "just for fun" (and to be helpful), mostly because it seemed like something I could easily test. I don't currently have any projects that need to play wav files with QML SoundEffect, so the outcome is not of immediate impact to me but (again) this seemed easy to paste into a QML file and launch.
So (after a week's delay 😅) that is what I have done.
My OS is Ubuntu 22.04.5 LTS jammy
I generated the wav files as follows:
sox -n -r 48000 -b 16 tone_1.wav synth 0.6 sin 440
sox -n -r 48000 -b 16 tone_2.wav synth 0.5 sin 240
When I launched the code using Qt_desktop/6.8.3/gcc_64/bin/qmlscene, things seem to work pretty well. I cannot reproduce the reported issue.
I then tried with both:
Qt_desktop/6.12.0/gcc_64/bin/qmlscene and also
Qt_desktop/6.12.0/gcc_64/bin/qml
In both of these 6.12.0 attempts, I hear no sound whatsoever! 🫤
So I still cannot reproduce the reported issue, but I definitely see different outcomes between 6.8.3 and 6.12.0, which the behavior in 6.12.0 seeming to be worse. (But maybe there is some other dependency I am missing to use multimedia in 6.12.0 on Ubuntu 22.04? .... but there wasn't any warning or error printed that would hint in that direction...)
When I use 6.8.3 I see:
qt.multimedia.ffmpeg: Using Qt multimedia with FFmpeg version 7.1 LGPL version 2.1 or later
And with 6.12.0 I see:
qt.multimedia.ffmpeg: Using Qt multimedia with FFmpeg version 9.0.1 LGPL version 2.1 or later