Mercurial > hg > forks > bilotrip-mj12
comparison src/midifile.c @ 52:58e453729336
Heh .. Another try.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 06 Aug 2013 15:49:09 +0300 |
parents | 275b6c78f03b |
children | a2f736d06b70 |
comparison
equal
deleted
inserted
replaced
51:275b6c78f03b | 52:58e453729336 |
---|---|
525 { | 525 { |
526 midiError(pMF, "Error reading MIDI file header.\n"); | 526 midiError(pMF, "Error reading MIDI file header.\n"); |
527 goto error; | 527 goto error; |
528 } | 528 } |
529 | 529 |
530 midiSkip(pMF, pMF->Header.iHeaderSize); | 530 midiSkip(pMF, pMF->Header.iHeaderSize - 3 * sizeof(Uint16)); |
531 | 531 |
532 /* | 532 /* |
533 ** Get all tracks | 533 ** Get all tracks |
534 */ | 534 */ |
535 for (i = 0; i < MAX_MIDI_TRACKS; ++i) | 535 for (i = 0; i < MAX_MIDI_TRACKS; ++i) |