Unsolved SoundEffect change source
-
Hi there,
when I change the source of a SoundEffect I hear the old and the new sound with the next play(). Is there any way I can avoid that?
Many thanks for any help in advance
Uwe
-
Hi,
Do you mean you only here it once and then it's gone ?
-
@SGaist Thanks for the reply. Let me clear this up:
SoundEffect { id: trialgong source: tone onSourceChanged: { play() } }
When I now set a new source to trialgong with
trialgong.source = something
I can here the old and the new sound. I would expect to just here the new sound. I am using Qt 5.5 on Linux.I had the same behavior when issuing
trialgong.source = something trialgong.play()
instead of using
onSourceChanged
.Any ideas?
Uwe
-
Hmm, got the same problem when using QSoundEffect in C++. I am preparing a small sample project for a bug report. Have to learn how to record the output in Linux to attach.
Tried on Android and cannot reproduce the problem there.
-
If it makes things simpler, use an external device like your phone to record the output
-
Many thanks for your encouragement.
I filed bug report QTBUG-48982 including a recorded sample output and an example project.
-
Thanks !
Since 5.5.1 is out, can you test with that version to see if it behaves better ?
-
Still happens with Qt 5.5.1 Linux. Added Comment to the bug report to that respect.