1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- #ifndef _NATIVE_MIDI_COMMON_H_
- #define _NATIVE_MIDI_COMMON_H_
- #include "SDL.h"
- #define MIDI_STATUS_NOTE_OFF 0x8
- #define MIDI_STATUS_NOTE_ON 0x9
- #define MIDI_STATUS_AFTERTOUCH 0xA
- #define MIDI_STATUS_CONTROLLER 0xB
- #define MIDI_STATUS_PROG_CHANGE 0xC
- #define MIDI_STATUS_PRESSURE 0xD
- #define MIDI_STATUS_PITCH_WHEEL 0xE
- #define MIDI_STATUS_SYSEX 0xF
- typedef struct MIDIEvent
- {
- Uint32 time;
- Uint8 status;
- Uint8 data[2];
- Uint32 extraLen;
- Uint8 *extraData;
-
- struct MIDIEvent *next;
- } MIDIEvent;
- #ifdef __cplusplus
- extern "C"
- {
- #endif
-
- MIDIEvent *CreateMIDIEventList(SDL_RWops *rw, Uint16 *division);
- void FreeMIDIEventList(MIDIEvent *head);
- #ifdef __cplusplus
- }
- #endif
- #endif
|