[BACK]Return to midiplay.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / midiplay

Diff for /src/usr.bin/midiplay/Attic/midiplay.c between version 1.7 and 1.8

version 1.7, 2005/07/28 10:59:11 version 1.8, 2005/11/06 00:56:51
Line 485 
Line 485 
         int ch;          int ch;
         int listdevs = 0;          int listdevs = 0;
         int example = 0;          int example = 0;
           int gmreset = 0;
         int nmidi;          int nmidi;
         char *file = DEVMUSIC;          char *file = DEVMUSIC;
         struct synth_info info;          struct synth_info info;
         FILE *f;          FILE *f;
         const char *errstr;          const char *errstr;
   
         while ((ch = getopt(argc, argv, "?d:f:lmqt:vx")) != -1) {          while ((ch = getopt(argc, argv, "?d:f:glmqt:vx")) != -1) {
                 switch (ch) {                  switch (ch) {
                 case 'd':                  case 'd':
                         unit = strtonum(optarg, 0, INT_MAX, &errstr);                          unit = strtonum(optarg, 0, INT_MAX, &errstr);
Line 501 
Line 502 
                 case 'f':                  case 'f':
                         file = optarg;                          file = optarg;
                         break;                          break;
                   case 'g':
                           gmreset++;
                           break;
                 case 'l':                  case 'l':
                         listdevs++;                          listdevs++;
                         break;                          break;
Line 544 
Line 548 
                 }                  }
                 exit(0);                  exit(0);
         }          }
         midireset();          if (gmreset)
                   midireset();
         if (example)          if (example)
                 playdata(sample, sizeof sample, "<Gubben Noa>");                  playdata(sample, sizeof sample, "<Gubben Noa>");
         else if (argc == 0)          else if (argc == 0)

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8