Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LO21_Pin_Noir_Boucher_Bouri_Detree
CellulutLO21
Commits
c0ccac31
Commit
c0ccac31
authored
Jun 09, 2021
by
Yann Boucher
Browse files
Actually bad apple doesn't work that well lol
parent
7a32f7a9
Pipeline
#79524
passed with stages
in 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/interface.cpp
View file @
c0ccac31
...
...
@@ -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 _WIN
32
#ifdef
BAD_APPLE
_WIN
PlaySound
(
TEXT
(
"extras/bad-apple.wav"
),
GetModuleHandle
(
NULL
),
SND_FILENAME
|
SND_ASYNC
);
Sleep
(
1300
);
// delay for the sound to load
#el
if
#el
se
QMessageBox
::
information
(
this
,
""
,
"Music functionnality is only available on Windows"
);
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment