--- np2/sound/vermouth/midinst.h 2003/11/28 08:01:33 1.2 +++ np2/sound/vermouth/midinst.h 2006/12/10 11:14:31 1.5 @@ -38,10 +38,10 @@ typedef struct { int tremolo_step; int vibrate_sweep; int vibrate_rate; - BYTE tremolo_depth; - BYTE vibrate_depth; - BYTE mode; - BYTE panpot; + UINT8 tremolo_depth; + UINT8 vibrate_depth; + UINT8 mode; + UINT8 panpot; } _INSTLAYER, *INSTLAYER; typedef struct { @@ -49,8 +49,19 @@ typedef struct { int freq; } _INSTRUMENT, *INSTRUMENT; +struct _miditoneloadparam; + +#ifdef __cplusplus +extern "C" { +#endif int inst_singleload(MIDIMOD mod, UINT bank, UINT num); int inst_bankload(MIDIMOD mod, UINT bank); +int inst_bankloadex(MIDIMOD mod, UINT bank, int (*cb)(struct _miditoneloadparam *param), struct _miditoneloadparam *param); void inst_bankfree(MIDIMOD mod, UINT bank); +UINT inst_gettones(MIDIMOD mod, UINT bank); + +#ifdef __cplusplus +} +#endif