Skip to content
Snippets Groups Projects
Commit c0ccac31 authored by Yann Boucher's avatar Yann Boucher
Browse files

Actually bad apple doesn't work that well lol

parent 7a32f7a9
No related branches found
No related tags found
No related merge requests found
Pipeline #79524 passed
...@@ -632,7 +632,10 @@ QJsonObject MainWindow::default_configuration() const ...@@ -632,7 +632,10 @@ QJsonObject MainWindow::default_configuration() const
return doc.object(); 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> #include <windows.h>
#endif #endif
...@@ -695,10 +698,10 @@ void MainWindow::play_bad_apple() ...@@ -695,10 +698,10 @@ void MainWindow::play_bad_apple()
//bad_apple_player.play(); //bad_apple_player.play();
; ;
#ifdef _WIN32 #ifdef BAD_APPLE_WIN
PlaySound(TEXT("extras/bad-apple.wav"), GetModuleHandle(NULL), SND_FILENAME | SND_ASYNC); PlaySound(TEXT("extras/bad-apple.wav"), GetModuleHandle(NULL), SND_FILENAME | SND_ASYNC);
Sleep(1300); // delay for the sound to load Sleep(1300); // delay for the sound to load
#elif #else
QMessageBox::information(this, "", "Music functionnality is only available on Windows"); QMessageBox::information(this, "", "Music functionnality is only available on Windows");
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment