Commit c0ccac31 authored by Yann Boucher's avatar Yann Boucher
Browse files

Actually bad apple doesn't work that well lol

parent 7a32f7a9
Pipeline #79524 passed with stages
in 21 seconds
......@@ -632,7 +632,10 @@ QJsonObject MainWindow::default_configuration() const
return doc.object();
}
#ifdef _WIN32
// Décommenter pour activer le son sur win
//#define BAD_APPLE_WIN
#if defined(BAD_APPLE_WIN)
#include <windows.h>
#endif
......@@ -695,10 +698,10 @@ void MainWindow::play_bad_apple()
//bad_apple_player.play();
;
#ifdef _WIN32
#ifdef BAD_APPLE_WIN
PlaySound(TEXT("extras/bad-apple.wav"), GetModuleHandle(NULL), SND_FILENAME | SND_ASYNC);
Sleep(1300); // delay for the sound to load
#elif
#else
QMessageBox::information(this, "", "Music functionnality is only available on Windows");
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment