Playing SoundEffect freezes app
Unsolved
General and Desktop
-
Hi,
I have Qt 5.7 Windows app. It is QML/C++ game, I redraw its objects on every afterAnimating signal of Window QML Type.It has been running without any major troubles since 2016 but recently many users reported this minor issue: every time SoundEffect is played the game freezes for a fraction of second.
The sound effect is like this:
SoundEffect { objectName: "deathSound" source: "qrc:/cars/sound/death.wav" volume: soundLevel }
and is played like this from C++:
m_wrongItemSound->play();
When I delete m_wrongItemSound->play(); from the source code, there is no freeze.
Any idea how to solve this issue?
-
@MartinD said in Playing SoundEffect freezes app:
I have Qt 5.7 Windows app
Qt 5.7 is quite old. Could be a bug that got fixed in later versions.
every time SoundEffect is played the game freezes for a fraction of second.
No matter what sound you play? Or just this one?