--- np2/sound/vermouth/midiout.c 2003/12/25 19:26:55 1.9 +++ np2/sound/vermouth/midiout.c 2005/03/18 09:23:11 1.11 @@ -6,7 +6,7 @@ #define MIDIOUT_VERSTRING "VERMOUTH 1.05" -static const char vermouthver[] = MIDIOUT_VERSTRING; +static const OEMCHAR vermouthver[] = OEMTEXT(MIDIOUT_VERSTRING); static const int gaintbl[24+1] = { 16, 19, 22, 26, 32, 38, 45, 53, @@ -637,7 +637,7 @@ static void allresetmidi(MIDIHDL midi) { // ---- -UINT midiout_getver(char *string, int leng) { +UINT midiout_getver(OEMCHAR *string, int leng) { milstr_ncpy(string, vermouthver, leng); return((MIDIOUT_VERSION << 8) | 0x00); @@ -732,14 +732,14 @@ void midiout_shortmsg(MIDIHDL hdl, UINT3 } } -static void longmsg_gm(MIDIHDL hdl, const BYTE *msg, UINT size) { +static void longmsg_gm(MIDIHDL hdl, const UINT8 *msg, UINT size) { if ((size > 5) && (msg[2] == 0x7f) && (msg[3] == 0x09)) { allresetmidi(hdl); // GM reset } } -static void longmsg_roland(MIDIHDL hdl, const BYTE *msg, UINT size) { +static void longmsg_roland(MIDIHDL hdl, const UINT8 *msg, UINT size) { UINT addr; UINT part; @@ -780,7 +780,7 @@ static void longmsg_roland(MIDIHDL hdl, } } -void midiout_longmsg(MIDIHDL hdl, const BYTE *msg, UINT size) { +void midiout_longmsg(MIDIHDL hdl, const UINT8 *msg, UINT size) { UINT id;