|
|
@ -1,12 +1,10 @@
|
|
|
|
--- a/src/tone/tone.cpp
|
|
|
|
--- a/src/tone/tone.cpp
|
|
|
|
+++ b/src/tone/tone.cpp
|
|
|
|
+++ b/src/tone/tone.cpp
|
|
|
|
@@ -248,7 +248,8 @@
|
|
|
|
@@ -248,6 +248,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
void initTone() {
|
|
|
|
void initTone() {
|
|
|
|
|
|
|
|
|
|
|
|
- if(SDL_Init( SDL_INIT_AUDIO ) < 0) {
|
|
|
|
|
|
|
|
+ SDL_SetHint(SDL_HINT_NO_SIGNAL_HANDLERS, "1");
|
|
|
|
+ SDL_SetHint(SDL_HINT_NO_SIGNAL_HANDLERS, "1");
|
|
|
|
+ if(SDL_Init( SDL_INIT_AUDIO ) < 0) {
|
|
|
|
if(SDL_Init( SDL_INIT_AUDIO ) < 0) {
|
|
|
|
printf("Erreur d'initialisation de la SDL : %s",SDL_GetError());//on affiche l'erreur
|
|
|
|
printf("Erreur d'initialisation de la SDL : %s",SDL_GetError());//on affiche l'erreur
|
|
|
|
exit( EXIT_FAILURE);
|
|
|
|
exit( EXIT_FAILURE);
|
|
|
|
}
|
|
|
|
|
|
|
|