Monitoring du Phytotron
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

t.c 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * Audio player for the phytotron
  3. */
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include <unistd.h>
  7. #include "player.h"
  8. /* --------------------------------------------------------------------- */
  9. int verbosity;
  10. /* --------------------------------------------------------------------- */
  11. void help(int v)
  12. {
  13. puts("Options :");
  14. puts("\t-w filename.wav");
  15. exit(0);
  16. }
  17. /* --------------------------------------------------------------------- */
  18. int main(int argc, char *argv[])
  19. {
  20. char *wavname = "1337.wav";
  21. int foo, opt, K;
  22. printf("\n**** %s **** compiled the %s at %s ***\n",
  23. argv[0], __DATE__, __TIME__);
  24. while ((opt = getopt(argc, argv, "hK:vw:")) != -1) {
  25. switch (opt) {
  26. case 'h': help(0); break;
  27. case 'K': K = atoi(optarg); break;
  28. case 'v': verbosity++; break;
  29. case 'w': wavname = optarg; break;
  30. default: break;
  31. }
  32. }
  33. foo = blast_this_file(wavname);
  34. fprintf(stderr, "audio blaster -> %d\n", foo);
  35. return 0;
  36. }
  37. /* --------------------------------------------------------------------- */