diff --git a/src/interface.cpp b/src/interface.cpp index 82368359f2eaeed9c45f7b6d5b5c021cc776ff4a..bb921c92a9a3a81edd05de17cacd68308d99f2bc 100644 --- a/src/interface.cpp +++ b/src/interface.cpp @@ -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