1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #if !defined( MMUS2MID_H )
- #define MMUS2MID_H
- typedef enum
- {
- MUSDATACOR,
- TOOMCHAN,
- MEMALLOC,
- MUSDATAMT,
- BADMUSCTL,
- BADSYSEVT,
- BADCTLCHG,
- TRACKOVF,
- BADMIDHDR,
- } error_code_t;
- typedef unsigned char UBYTE;
- typedef unsigned short UWORD;
- typedef unsigned long ULONG;
- #ifndef MSDOS
- #define MIDI_TRACKS 32
- typedef struct MIDI
- {
- int divisions;
- struct {
- unsigned char *data;
- int len;
- } track[MIDI_TRACKS];
- } MIDI;
- #endif
- extern int mmus2mid(const UBYTE *mus,MIDI *mid, UWORD division, int nocomp);
- extern void free_mididata(MIDI *mid);
- extern int MIDIToMidi(MIDI *mididata,UBYTE **mid,int *midlen);
- extern int MidiToMIDI(UBYTE *mid,MIDI *mididata);
- #endif
|