|
|
| version 1.5, 2005/02/07 14:46:14 | version 1.6, 2005/02/09 20:11:35 |
|---|---|
| Line 19 extern MIDIMOD vermouth_module; | Line 19 extern MIDIMOD vermouth_module; |
| #define MIDIOUTS3(a) ((*(UINT32 *)(a)) & 0xffffff) | #define MIDIOUTS3(a) ((*(UINT32 *)(a)) & 0xffffff) |
| const char cmmidi_midimapper[] = "MIDI MAPPER"; | const OEMCHAR cmmidi_midimapper[] = OEMTEXT("MIDI MAPPER"); |
| #if defined(VERMOUTH_LIB) | #if defined(VERMOUTH_LIB) |
| const char cmmidi_vermouth[] = "VERMOUTH"; | const OEMCHAR cmmidi_vermouth[] = OEMTEXT("VERMOUTH"); |
| #endif | #endif |
| const char *cmmidi_mdlname[12] = { | const OEMCHAR *cmmidi_mdlname[12] = { |
| "MT-32", "CM-32L", "CM-64", | OEMTEXT("MT-32"), OEMTEXT("CM-32L"), OEMTEXT("CM-64"), |
| "CM-300", "CM-500(LA)", "CM-500(GS)", | OEMTEXT("CM-300"), OEMTEXT("CM-500(LA)"), OEMTEXT("CM-500(GS)"), |
| "SC-55", "SC-88", "LA", | OEMTEXT("SC-55"), OEMTEXT("SC-88"), OEMTEXT("LA"), |
| "GM", "GS", "XG"}; | OEMTEXT("GM"), OEMTEXT("GS"), OEMTEXT("XG")}; |
| enum { MIDI_MT32 = 0, MIDI_CM32L, MIDI_CM64, | enum { MIDI_MT32 = 0, MIDI_CM32L, MIDI_CM64, |
| MIDI_CM300, MIDI_CM500LA, MIDI_CM500GS, | MIDI_CM300, MIDI_CM500LA, MIDI_CM500GS, |
| Line 139 static UINT8 midictrlindex[128]; | Line 139 static UINT8 midictrlindex[128]; |
| // ---- | // ---- |
| static BOOL getmidioutid(const char *midiout, UINT *ret) { | static BOOL getmidioutid(const OEMCHAR *midiout, UINT *ret) { |
| UINT num; | UINT num; |
| UINT i; | UINT i; |
| Line 160 static BOOL getmidioutid(const char *mid | Line 160 static BOOL getmidioutid(const char *mid |
| return(FAILURE); | return(FAILURE); |
| } | } |
| static BOOL getmidiinid(const char *midiin, UINT *ret) { | static BOOL getmidiinid(const OEMCHAR *midiin, UINT *ret) { |
| UINT num; | UINT num; |
| UINT i; | UINT i; |
| Line 181 static BOOL getmidiinid(const char *midi | Line 181 static BOOL getmidiinid(const char *midi |
| return(FAILURE); | return(FAILURE); |
| } | } |
| static UINT module2number(const char *module) { | static UINT module2number(const OEMCHAR *module) { |
| UINT i; | UINT i; |
| Line 577 static long midimsg(COMMNG self, UINT ms | Line 577 static long midimsg(COMMNG self, UINT ms |
| break; | break; |
| case COMMSG_MIMPIDEFFILE: | case COMMSG_MIMPIDEFFILE: |
| mimpidef_load(&midi->def, (char *)param); | mimpidef_load(&midi->def, (OEMCHAR *)param); |
| return(1); | return(1); |
| case COMMSG_MIMPIDEFEN: | case COMMSG_MIMPIDEFEN: |
| Line 672 void cmmidi_initailize(void) { | Line 672 void cmmidi_initailize(void) { |
| midictrlindex[32] = 1; | midictrlindex[32] = 1; |
| } | } |
| COMMNG cmmidi_create(const char *midiout, const char *midiin, | COMMNG cmmidi_create(const OEMCHAR *midiout, const OEMCHAR *midiin, |
| const char *module) { | const OEMCHAR *module) { |
| UINT opened; | UINT opened; |
| UINT id; | UINT id; |