| version 1.6, 2006/12/16 12:11:07 | version 1.8, 2011/02/04 00:39:34 | 
| Line 1 | Line 1 | 
|  |  | 
| #ifndef __VERMOUTH_H | #ifndef __VERMOUTH_H | 
| #define __VERMOUTH_H | #define __VERMOUTH_H | 
|  |  | 
| #ifndef VERMOUTHCL | #ifndef VERMOUTHCL | 
| #define VERMOUTHCL | #define VERMOUTHCL | 
| #endif | #endif | 
|  |  | 
| #ifndef VERMOUTH_EXPORTS | #ifndef VERMOUTH_EXPORTS | 
| #define VEXTERN | #define VEXTERN | 
| #define VEXPORT         VERMOUTHCL | #define VEXPORT         VERMOUTHCL | 
| #else | #else | 
| #define VEXTERN         __declspec(dllexport) | #define VEXTERN         __declspec(dllexport) | 
| #define VEXPORT         WINAPI | #define VEXPORT         WINAPI | 
| #endif | #endif | 
|  |  | 
| typedef struct { | typedef struct { | 
| UINT    samprate; | UINT    samprate; | 
| } *MIDIMOD; | } *MIDIMOD; | 
|  |  | 
| typedef struct { | typedef struct { | 
| UINT    samprate; | UINT    samprate; | 
| UINT    worksize; | UINT    worksize; | 
| } *MIDIHDL; | } *MIDIHDL; | 
|  |  | 
| typedef struct { | typedef struct { | 
| void    *userdata; | void    *userdata; | 
| UINT    totaltones; | UINT    totaltones; | 
| UINT    progress; | UINT    progress; | 
| UINT    bank; | UINT    bank; | 
| UINT    num; | UINT    num; | 
| } MIDIOUTLAEXPARAM; | } MIDIOUTLAEXPARAM; | 
| typedef int (*FNMIDIOUTLAEXCB)(MIDIOUTLAEXPARAM *param); | typedef BRESULT (*FNMIDIOUTLAEXCB)(MIDIOUTLAEXPARAM *param); | 
|  |  | 
|  |  | 
| #ifdef __cplusplus | #ifdef __cplusplus | 
| extern "C" { | extern "C" { | 
| #endif | #endif | 
|  |  | 
| VEXTERN UINT VEXPORT midiout_getver(char *string, int leng); | VEXTERN UINT VEXPORT midiout_getver(char *string, int leng); | 
| VEXTERN MIDIHDL VEXPORT midiout_create(MIDIMOD module, UINT worksize); | VEXTERN MIDIHDL VEXPORT midiout_create(MIDIMOD mod, UINT worksize); | 
| VEXTERN void VEXPORT midiout_destroy(MIDIHDL hdl); | VEXTERN void VEXPORT midiout_destroy(MIDIHDL hdl); | 
| VEXTERN void VEXPORT midiout_shortmsg(MIDIHDL hdl, UINT32 msg); | VEXTERN void VEXPORT midiout_shortmsg(MIDIHDL hdl, UINT32 msg); | 
| VEXTERN void VEXPORT midiout_longmsg(MIDIHDL hdl, const void *msg, UINT size); | VEXTERN void VEXPORT midiout_longmsg(MIDIHDL hdl, const void *msg, UINT size); | 
| VEXTERN const SINT32 * VEXPORT midiout_get(MIDIHDL hdl, UINT *samples); | VEXTERN const SINT32 * VEXPORT midiout_get(MIDIHDL hdl, UINT *samples); | 
| VEXTERN UINT VEXPORT midiout_get16(MIDIHDL hdl, SINT16 *pcm, UINT size); | VEXTERN UINT VEXPORT midiout_get16(MIDIHDL hdl, SINT16 *pcm, UINT size); | 
| VEXTERN UINT VEXPORT midiout_get32(MIDIHDL hdl, SINT32 *pcm, UINT size); | VEXTERN UINT VEXPORT midiout_get32(MIDIHDL hdl, SINT32 *pcm, UINT size); | 
| VEXTERN void VEXPORT midiout_setgain(MIDIHDL hdl, int gain); | VEXTERN void VEXPORT midiout_setgain(MIDIHDL hdl, int gain); | 
| VEXTERN void VEXPORT midiout_setmoduleid(MIDIHDL hdl, UINT8 moduleid); | VEXTERN void VEXPORT midiout_setmoduleid(MIDIHDL hdl, UINT8 moduleid); | 
| VEXTERN void VEXPORT midiout_setportb(MIDIHDL hdl, MIDIHDL portb); | VEXTERN void VEXPORT midiout_setportb(MIDIHDL hdl, MIDIHDL portb); | 
|  |  | 
| VEXTERN MIDIMOD VEXPORT midimod_create(UINT samprate); | VEXTERN MIDIMOD VEXPORT midimod_create(UINT samprate); | 
| VEXTERN void VEXPORT midimod_destroy(MIDIMOD hdl); | VEXTERN void VEXPORT midimod_destroy(MIDIMOD hdl); | 
| VEXTERN void VEXPORT midimod_destroy(MIDIMOD hdl); | VEXTERN void VEXPORT midimod_destroy(MIDIMOD hdl); | 
| VEXTERN BRESULT VEXPORT midimod_cfgload(MIDIMOD mod, const OEMCHAR *filename); | VEXTERN BRESULT VEXPORT midimod_cfgload(MIDIMOD mod, const OEMCHAR *filename); | 
| VEXTERN void VEXPORT midimod_loadprogram(MIDIMOD hdl, UINT num); | VEXTERN void VEXPORT midimod_loadprogram(MIDIMOD hdl, UINT num); | 
| VEXTERN void VEXPORT midimod_loadrhythm(MIDIMOD hdl, UINT num); | VEXTERN void VEXPORT midimod_loadrhythm(MIDIMOD hdl, UINT num); | 
| VEXTERN void VEXPORT midimod_loadgm(MIDIMOD hdl); | VEXTERN void VEXPORT midimod_loadgm(MIDIMOD hdl); | 
| VEXTERN void VEXPORT midimod_loadall(MIDIMOD hdl); | VEXTERN void VEXPORT midimod_loadall(MIDIMOD hdl); | 
| VEXTERN void VEXPORT midimod_loadallex(MIDIMOD hdl, FNMIDIOUTLAEXCB cb, void *userdata); | VEXTERN int VEXPORT midimod_loadallex(MIDIMOD hdl, FNMIDIOUTLAEXCB cb, void *userdata); | 
|  |  | 
| #ifdef __cplusplus | #ifdef __cplusplus | 
| } | } | 
| #endif | #endif | 
|  |  | 
| #endif | #endif | 
|  |  |