diff --git a/Code/KirbyTrack.c b/Code/KirbyTrack.c index 2725715..3051197 100644 --- a/Code/KirbyTrack.c +++ b/Code/KirbyTrack.c @@ -43,6 +43,11 @@ int main(int argc, char* argv[]) sf::Event event; tracking = 0; //Pas de tracking de base en mode SFML + + + sf::Music aye; + if (!aye.openFromFile("Stock SFML/Aye Sir.ogg")) + return EXIT_FAILURE; // erreur #endif @@ -169,18 +174,23 @@ int main(int argc, char* argv[]) //printf("\n\n\n OK \n\n\n"); if (tracking){ tracking = 0;} else tracking = 1; + + aye.play(); + cvWaitKey(100); } //Detection du bouton reset if (sf::Mouse::isButtonPressed(sf::Mouse::Left)&&(PosMouse.x>640)&&(PosMouse.x<760)&&(PosMouse.y>110)&&(PosMouse.y<160)){ - //printf("\n\n\n OK \n\n\n"); + tracking = 0; //Reset Position moteur angle[0]=0; //ANGLES A VERIFIER angle[1]=0; controle_moteur(angle); + aye.play(); + cvWaitKey(100); } //printf("Pos Mouse : %d %d \n", PosMouse.x, PosMouse.y); diff --git a/Code/Stock SFML/Aye Sir.ogg b/Code/Stock SFML/Aye Sir.ogg new file mode 100644 index 0000000..85370d4 Binary files /dev/null and b/Code/Stock SFML/Aye Sir.ogg differ diff --git a/Code/Stock SFML/temp.jpg b/Code/Stock SFML/temp.jpg index 45ae786..d89fd45 100644 Binary files a/Code/Stock SFML/temp.jpg and b/Code/Stock SFML/temp.jpg differ diff --git a/Code/gmon.out b/Code/gmon.out index a48b21d..24ee5c3 100644 Binary files a/Code/gmon.out and b/Code/gmon.out differ