--- np2/sound/vermouth/midimod.h 2003/10/16 17:58:10 1.1 +++ np2/sound/vermouth/midimod.h 2006/12/16 09:43:24 1.4 @@ -5,7 +5,7 @@ typedef struct _pathlist *PATHLIST; struct _pathlist { PATHLIST next; - char path[MAX_PATH]; + OEMCHAR path[MAX_PATH]; }; enum { @@ -20,11 +20,11 @@ enum { }; typedef struct { - char *name; + OEMCHAR *name; int amp; - BYTE flag; - BYTE pan; - BYTE note; + UINT8 flag; + UINT8 pan; + UINT8 note; } _TONECFG, *TONECFG; @@ -32,9 +32,12 @@ typedef struct { extern "C" { #endif -BOOL cfgfile_getfile(MIDIMOD mod, const char *filename, - char *path, int size); -BOOL cfgfile_load(MIDIMOD mod, const char *filename, int depth); +BRESULT cfgfile_getfile(MIDIMOD mod, const OEMCHAR *filename, + OEMCHAR *path, int size); +BRESULT cfgfile_load(MIDIMOD mod, const OEMCHAR *filename, int depth); + +void midimod_lock(MIDIMOD hdl); +void midimod_unlock(MIDIMOD hdl); #ifdef __cplusplus }