Les scratchmen utilisent des loopers en Flash 11. Il est temps qu'ils découvrent une interface ncurses pilotée au joystick :)
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.

main.c 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /*
  2. * NcLooper test des fonctions fichier (???)
  3. */
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include <unistd.h>
  7. #include <string.h>
  8. #include <ctype.h>
  9. #include <ao/ao.h>
  10. #include "nclooper.h"
  11. /* --------------------------------------------------------------------- */
  12. int verbosity;
  13. SampleRef the_samples[26];
  14. /* --------------------------------------------------------------------- */
  15. void help(int k)
  16. {
  17. puts("NcLooper : version pas finie...");
  18. exit(0);
  19. }
  20. /* --------------------------------------------------------------------- */
  21. /*
  22. * all the basic engines are up, we have to fire ncurses
  23. */
  24. int introduction(int k)
  25. {
  26. int foo;
  27. ao_device *device;
  28. #if DEBUG_LEVEL
  29. fprintf(stderr, ">>> %s ( %d )\n", __func__, k);
  30. #endif
  31. foo = init_ecran(__func__);
  32. sleep(1);
  33. /* check the sound subsystem */
  34. return -1;
  35. }
  36. /* --------------------------------------------------------------------- */
  37. int conclusion(int k)
  38. {
  39. int foo;
  40. #if DEBUG_LEVEL
  41. fprintf(stderr, ">>> %s ( %d )\n", __func__, k);
  42. #endif
  43. foo = fin_ecran();
  44. return -1;
  45. }
  46. /* --------------------------------------------------------------------- */
  47. int main(int argc, char *argv[])
  48. {
  49. int foo;
  50. int opt;
  51. char *listname = "files/samples.list";
  52. while ((opt = getopt(argc, argv, "hl:v")) != -1) {
  53. switch(opt) {
  54. case 'h': help(0); break;
  55. case 'l': listname = optarg; break;
  56. case 'v': verbosity++; break;
  57. }
  58. }
  59. #if DEBUG_LEVEL
  60. fprintf(stderr, "argc = %d, optind = %d\n", argc, optind);
  61. #endif
  62. foo = lecture_liste_des_samples(listname, the_samples);
  63. fprintf(stderr,"retour lecture liste '%s' -> %d\n", listname, foo);
  64. foo = start_the_engine();
  65. fprintf(stderr,"retour start engine -> %d\n", foo);
  66. introduction(0);
  67. foo = enter_interactive(the_samples, 0);
  68. #if DEBUG_LEVEL
  69. fprintf(stderr, "retour 'enter interactive' -> %d\n", foo);
  70. #endif
  71. conclusion(0);
  72. return 0;
  73. }
  74. /* --------------------------------------------------------------------- */