[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.3 and 1.4

version 1.3, 2002/03/14 06:51:42 version 1.4, 2003/06/10 22:20:48
Line 128 
Line 128 
 #define GET32(p) (((p)[0] << 24) | ((p)[1] << 16) | ((p)[2] << 8) | (p)[3])  #define GET32(p) (((p)[0] << 24) | ((p)[1] << 16) | ((p)[2] << 8) | (p)[3])
   
 void  void
 usage()  usage(void)
 {  {
         printf("Usage: %s [-d unit] [-f file] [-l] [-m] [-q] [-t tempo] [-v] [-x] [file ...]\n",          printf("Usage: %s [-d unit] [-f file] [-l] [-m] [-q] [-t tempo] [-v] [-x] [file ...]\n",
                 __progname);                  __progname);
Line 145 
Line 145 
 int fd;  int fd;
   
 void  void
 send_event(ev)  send_event(seq_event_rec *ev)
         seq_event_rec *ev;  
 {  {
         /*          /*
         printf("%02x %02x %02x %02x %02x %02x %02x %02x\n",          printf("%02x %02x %02x %02x %02x %02x %02x %02x\n",
Line 158 
Line 157 
 }  }
   
 u_long  u_long
 getvar(tp)  getvar(struct track *tp)
         struct track *tp;  
 {  {
         u_long r, c;          u_long r, c;
   
Line 172 
Line 170 
 }  }
   
 void  void
 dometa(meta, p, len)  dometa(u_int meta, u_char *p, u_int len)
         u_int meta;  
         u_char *p;  
         u_int len;  
 {  {
         switch (meta) {          switch (meta) {
         case META_TEXT:          case META_TEXT:
Line 217 
Line 212 
 }  }
   
 void  void
 midireset()  midireset(void)
 {  {
         /* General MIDI reset sequence */          /* General MIDI reset sequence */
         static u_char gm_reset[] = { 0x7e, 0x7f, 0x09, 0x01, 0xf7 };          static u_char gm_reset[] = { 0x7e, 0x7f, 0x09, 0x01, 0xf7 };
Line 227 
Line 222 
   
 #define SYSEX_CHUNK 6  #define SYSEX_CHUNK 6
 void  void
 send_sysex(p, l)  send_sysex(u_char *p, u_int l)
         u_char *p;  
         u_int l;  
 {  {
         seq_event_rec event;          seq_event_rec event;
         u_int n;          u_int n;
Line 249 
Line 242 
 }  }
   
 void  void
 playfile(f, name)  playfile(FILE *f, char *name)
         FILE *f;  
         char *name;  
 {  {
         u_char *buf;          u_char *buf;
         u_int tot, n, size, nread;          u_int tot, n, size, nread;
Line 285 
Line 276 
 }  }
   
 void  void
 playdata(buf, tot, name)  playdata(u_char *buf, u_int tot, char *name)
         u_char *buf;  
         u_int tot;  
         char *name;  
 {  {
         int format, ntrks, divfmt, ticks, t, besttrk = 0;          int format, ntrks, divfmt, ticks, t, besttrk = 0;
         u_int len, mlen, status, chan;          u_int len, mlen, status, chan;
Line 487 
Line 475 
 }  }
   
 int  int
 main(argc, argv)  main(int argc, char **argv)
         int argc;  
         char **argv;  
 {  {
         int ch;          int ch;
         int listdevs = 0;          int listdevs = 0;

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4