1999-05-23 16:49:10 +00:00
|
|
|
/****************************************************************************
|
|
|
|
|
* *
|
|
|
|
|
* instr.h *
|
|
|
|
|
* Instrument Interface *
|
|
|
|
|
* *
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
2000-09-01 16:24:12 +00:00
|
|
|
/* FM instrument support */
|
|
|
|
|
|
|
|
|
|
typedef void snd_instr_fm_t;
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
int snd_instr_fm_convert_to_stream(snd_instr_fm_t *fm, const char *name, snd_seq_instr_put_t **put, size_t *size);
|
|
|
|
|
int snd_instr_fm_convert_from_stream(snd_seq_instr_get_t *data, size_t size, snd_instr_fm_t **fm);
|
|
|
|
|
int snd_instr_fm_free(snd_instr_fm_t *fm);
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
1999-07-10 08:52:04 +00:00
|
|
|
/* Simple Wave support */
|
|
|
|
|
|
|
|
|
|
typedef void snd_instr_simple_t;
|
1999-05-23 16:49:10 +00:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2000-05-08 18:53:38 +00:00
|
|
|
int snd_instr_simple_convert_to_stream(snd_instr_simple_t *simple, const char *name, snd_seq_instr_put_t **put, size_t *size);
|
|
|
|
|
int snd_instr_simple_convert_from_stream(snd_seq_instr_get_t *data, size_t size, snd_instr_simple_t **simple);
|
1999-07-10 08:52:04 +00:00
|
|
|
int snd_instr_simple_free(snd_instr_simple_t *simple);
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
1999-05-23 16:49:10 +00:00
|
|
|
/* InterWave FFFF support */
|
1999-07-10 08:52:04 +00:00
|
|
|
|
|
|
|
|
typedef void snd_instr_iwffff_t;
|
2000-11-20 20:10:46 +00:00
|
|
|
typedef struct _snd_iwffff_handle snd_iwffff_handle_t;
|
1999-07-10 08:52:04 +00:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
int snd_instr_iwffff_open(snd_iwffff_handle_t **handle, const char *name_fff, const char *name_dta);
|
|
|
|
|
int snd_instr_iwffff_open_rom(snd_iwffff_handle_t **handle, int card, int bank, int file);
|
|
|
|
|
int snd_instr_iwffff_open_rom_file(snd_iwffff_handle_t **handle, const char *name, int bank, int file);
|
|
|
|
|
int snd_instr_iwffff_close(snd_iwffff_handle_t *handle);
|
|
|
|
|
int snd_instr_iwffff_load(snd_iwffff_handle_t *handle, int bank, int prg, snd_instr_iwffff_t **iwffff);
|
2000-05-08 18:53:38 +00:00
|
|
|
int snd_instr_iwffff_convert_to_stream(snd_instr_iwffff_t *iwffff, const char *name, snd_seq_instr_put_t **data, size_t *size);
|
|
|
|
|
int snd_instr_iwffff_convert_from_stream(snd_seq_instr_get_t *data, size_t size, snd_instr_iwffff_t **iwffff);
|
1999-05-23 16:49:10 +00:00
|
|
|
int snd_instr_iwffff_free(snd_instr_iwffff_t *iwffff);
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|