| version 1.10, 2006/12/16 09:43:24 | version 1.12, 2006/12/16 22:23:24 | 
| Line 10 | Line 10 | 
 | // #define      VOLUME_ACURVE | // #define      VOLUME_ACURVE | 
 | #define ENABLE_PORTB | #define ENABLE_PORTB | 
 |  |  | 
 |  | #ifndef VERMOUTHCL | 
 |  | #define VERMOUTHCL | 
 |  | #endif | 
 |  |  | 
 | struct _midimodule; | struct _midimodule; | 
 | typedef struct _midimodule      _MIDIMOD; | typedef struct _midimodule      _MIDIMOD; | 
 | typedef struct _midimodule      *MIDIMOD; | typedef struct _midimodule      *MIDIMOD; | 
| Line 24  enum { | Line 28  enum { | 
 | MIDIOUT_ABORT           = -2 | MIDIOUT_ABORT           = -2 | 
 | }; | }; | 
 |  |  | 
 |  | #define CHANNEL_MAX             16 | 
 | #define VOICE_MAX               24 | #define VOICE_MAX               24 | 
 |  |  | 
 | #define SAMP_SHIFT              12 | #define SAMP_SHIFT              12 | 
| Line 54  enum { | Line 59  enum { | 
 | #define MIDI_BANKS      128 | #define MIDI_BANKS      128 | 
 | #endif | #endif | 
 |  |  | 
 |  |  | 
 | #include        "midimod.h" | #include        "midimod.h" | 
 | #include        "midinst.h" | #include        "midinst.h" | 
 | #include        "midvoice.h" | #include        "midvoice.h" | 
 | #include        "midtable.h" | #include        "midtable.h" | 
 |  |  | 
 |  |  | 
 | struct _midimodule { | struct _midimodule { | 
 | UINT            samprate; | UINT            samprate; | 
 | UINT            lockcount; | UINT            lockcount; | 
| Line 70  struct _midimodule { | Line 77  struct _midimodule { | 
 | LISTARRAY       namelist; | LISTARRAY       namelist; | 
 | }; | }; | 
 |  |  | 
 |  |  | 
 | struct _midictrl { | struct _midictrl { | 
 | UINT            samprate; | UINT            samprate; | 
 | UINT            worksize; | UINT            worksize; | 
| Line 90  struct _midictrl { | Line 96  struct _midictrl { | 
 | MIDIHDL         portb; | MIDIHDL         portb; | 
 | #endif  // defined(ENABLE_PORTB); | #endif  // defined(ENABLE_PORTB); | 
 |  |  | 
| _CHANNEL        channel[16]; | _CHANNEL        channel[CHANNEL_MAX]; | 
 | _VOICE          voice[VOICE_MAX]; | _VOICE          voice[VOICE_MAX]; | 
 | }; | }; | 
 |  |  | 
| Line 101  struct _miditoneloadparam { | Line 107  struct _miditoneloadparam { | 
 | UINT    bank; | UINT    bank; | 
 | UINT    num; | UINT    num; | 
 | }; | }; | 
| typedef struct _miditoneloadparam       MIDIOUTLAEXPARAM; |  | 
| typedef int (*FNMIDIOUTLAEXCB)(MIDIOUTLAEXPARAM *param); |  | 
 |  |  | 
 | #ifndef VERMOUTH_EXPORTS | #ifndef VERMOUTH_EXPORTS | 
 | #define VEXTERN | #define VEXTERN | 
| #define VEXPORT | #define VEXPORT         VERMOUTHCL | 
 | #else | #else | 
 | #define VEXTERN         __declspec(dllexport) | #define VEXTERN         __declspec(dllexport) | 
 | #define VEXPORT         WINAPI | #define VEXPORT         WINAPI | 
| Line 117  extern "C" { | Line 122  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 UINT8 *msg, UINT size); | VEXTERN void VEXPORT midiout_longmsg(MIDIHDL hdl, const UINT8 *msg, UINT size); | 
| Line 129  VEXTERN void VEXPORT midiout_setmoduleid | Line 134  VEXTERN void VEXPORT midiout_setmoduleid | 
 | 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 mod); | 
| VEXTERN void VEXPORT midimod_loadprogram(MIDIMOD hdl, UINT num); | VEXTERN BRESULT VEXPORT midimod_cfgload(MIDIMOD mod, const OEMCHAR *filename); | 
| VEXTERN void VEXPORT midimod_loadrhythm(MIDIMOD hdl, UINT num); | VEXTERN void VEXPORT midimod_loadprogram(MIDIMOD mod, UINT num); | 
| VEXTERN void VEXPORT midimod_loadgm(MIDIMOD hdl); | VEXTERN void VEXPORT midimod_loadrhythm(MIDIMOD mod, UINT num); | 
| VEXTERN void VEXPORT midimod_loadall(MIDIMOD hdl); | VEXTERN void VEXPORT midimod_loadgm(MIDIMOD mod); | 
| VEXTERN void VEXPORT midimod_loadallex(MIDIMOD hdl, FNMIDIOUTLAEXCB cb, void *userdata); | VEXTERN void VEXPORT midimod_loadall(MIDIMOD mod); | 
|  | VEXTERN void VEXPORT midimod_loadallex(MIDIMOD mod, FNMIDIOUTLAEXCB cb, | 
|  | void *userdata); | 
 |  |  | 
 | #ifdef __cplusplus | #ifdef __cplusplus | 
 | } | } |