1. try {
  2. ac = new AudioContext();
  3. musique_menu = new SamplePlayer(ac, new Sample(sketchPath("data/son/musique/menu_principal.mp3")));
  4. son_tir1 = new SamplePlayer(ac, new Sample(sketchPath("data/son/bruitage/Laser-Shot-1.mp3")));
  5. son_tir2 = new SamplePlayer(ac, new Sample(sketchPath("data/son/bruitage/Laser-Shot-2.mp3")));
  6. }
  7. catch(Exception e)
  8. {
  9. println("Problème lors du chargement du son!");
  10. e.printStackTrace();
  11. exit();
  12. }
Comments powered by Disqus