]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/midi.c
made 2 seperate debug files for the borland and watcom versions~ ^^; there is some...
[16.git] / src / lib / midi.c
old mode 100644 (file)
new mode 100755 (executable)
index 2d92d24..760906c
@@ -15,6 +15,9 @@
 #include "src/lib/midi.h"
 
 static unsigned int            midi_trk_count=0;
+struct midi_note               midi_notes[ADLIB_FM_VOICES];
+struct midi_channel            midi_ch[MIDI_MAX_CHANNELS];
+struct midi_track              midi_trk[MIDI_MAX_TRACKS];
 
 /* MIDI params. Nobody ever said it was a straightforward standard!
  * NTS: These are for reading reference. Internally we convert everything to 100Hz time base. */
@@ -420,7 +423,9 @@ void midi_tick_track(unsigned int i) {
                                        if (b == 0xFF) {
                                                if (c == 0x7F) { /* c=type d=len */
                                                        unsigned long len = midi_trk_read_delta(t);
-//                                                     fprintf(stderr,"Type 0x7F len=%lu %p/%p/%p\n",len,t->raw,t->read,t->fence);
+//====
+                                                       fprintf(stderr,"Type 0x7F len=%lu %p/%p/%p\n",len,t->raw,t->read,t->fence);
+//====
                                                        if (len < 512UL) {
                                                                /* unknown */
                                                                midi_trk_skip(t,len);
@@ -449,7 +454,9 @@ void midi_tick_track(unsigned int i) {
                                                                }
                                                        }
                                                        else {
-//                                                             fprintf(stderr,"Type 0x%02x len=%lu %p/%p/%p\n",c,d,t->raw,t->read,t->fence);
+//====
+                                                               fprintf(stderr,"Type 0x%02x len=%lu %p/%p/%p\n",c,d,t->raw,t->read,t->fence);
+//====
                                                        }
 
                                                        midi_trk_skip(t,d);
@@ -460,7 +467,9 @@ void midi_tick_track(unsigned int i) {
                                        }
                                        else {
                                                unsigned long len = midi_trk_read_delta(t);
-//                                             fprintf(stderr,"Sysex len=%lu %p/%p/%p\n",len,t->raw,t->read,t->fence);
+//====
+                                               fprintf(stderr,"Sysex len=%lu %p/%p/%p\n",len,t->raw,t->read,t->fence);
+//====
                                                midi_trk_skip(t,len);
                                        }
                                        } break;
@@ -481,7 +490,7 @@ void midi_tick_track(unsigned int i) {
        }
 }
 
-void adlib_shut_up();
+//void adlib_shut_up();
 void midi_reset_tracks();
 void midi_reset_channels();