#include #include int main(int argc, char **argv) { QCoreApplication app(argc, argv); QSoundEffect *effect = new QSoundEffect; effect->setLoopCount(QSoundEffect::Infinite); effect->setSource(QUrl("qrc:/buggy_nosound.wav")); effect->play(); return app.exec(); }