Update of /cvsroot/pure-data/externals/mrpeach/midifile In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18869
Modified Files: midifile.c Log Message: cleaned up code to reduce number of warnings
Index: midifile.c =================================================================== RCS file: /cvsroot/pure-data/externals/mrpeach/midifile/midifile.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** midifile.c 24 Aug 2006 06:56:27 -0000 1.1 --- midifile.c 2 Jun 2007 01:10:35 -0000 1.2 *************** *** 33,38 **** */
- //#define MSW // useful in m_pd.h if not yet replaced by _MSC_VER - #include "m_pd.h" #include <stdio.h> --- 33,36 ---- *************** *** 49,54 ****
[...2692 lines suppressed...] ! case 0x80: ! case 0x90: ! case 0xA0: ! case 0xB0: ! case 0xE0: ! n += 1; /* data bytes */ ! break; ! case 0xC0: ! case 0xD0: /* only one data byte */ ! break; ! } ! cP += n; ! } ! } ! x->track_chunk[index].track_index = (char *)cP - (char *)x->track_chunk[index].track_data; ! x->track_chunk[index].delta_time = delta_time; ! if (delta_time == NO_MORE_ELEMENTS) x->track_chunk[index].total_time = delta_time; ! else x->track_chunk[index].total_time += delta_time; }