diff --git a/src/ui/qt/game.cpp b/src/ui/qt/game.cpp index ca55ddae..de6d0ed4 100644 --- a/src/ui/qt/game.cpp +++ b/src/ui/qt/game.cpp @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include #include #include @@ -571,7 +571,10 @@ void Game::playSound(GameSound soundType, Color c) } if (hasSound) { - QSound::play(soundPath); + QSoundEffect *effect = new QSoundEffect; + effect->setSource(QUrl::fromLocalFile(soundPath)); + effect->setLoopCount(1); + effect->play(); } #endif /* ! DONOT_PLAY_SOUND */ }