diff options
Diffstat (limited to 'plugins/gme/game-music-emu-0.6pre/gme/kmsnddev.h')
-rw-r--r-- | plugins/gme/game-music-emu-0.6pre/gme/kmsnddev.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/plugins/gme/game-music-emu-0.6pre/gme/kmsnddev.h b/plugins/gme/game-music-emu-0.6pre/gme/kmsnddev.h new file mode 100644 index 00000000..ec7552b1 --- /dev/null +++ b/plugins/gme/game-music-emu-0.6pre/gme/kmsnddev.h @@ -0,0 +1,31 @@ +/* libnezp by Mamiya */ + +#ifndef KMSNDDEV_H__ +#define KMSNDDEV_H__ +#ifdef __cplusplus +extern "C" { +#endif + +#include "nestypes.h" + +typedef struct KMIF_SOUND_DEVICE { + void *ctx; + void (*release)(void *ctx); + void (*reset)(void *ctx, Uint32 clock, Uint32 freq); + int (*synth)(void *ctx); + void (*volume)(void *ctx, Int32 v); + void (*write)(void *ctx, Uint32 a, Uint32 v); + Uint32 (*read)(void *ctx, Uint32 a); + void (*setinst)(void *ctx, Uint32 n, void *p, Uint32 l); +#if 0 + void (*setrate)(void *ctx, Uint32 clock, Uint32 freq); + void (*getinfo)(void *ctx, KMCH_INFO *cip, ); + void (*volume2)(void *ctx, Uint8 *volp, Uint32 numch); + /* 0x00(mute),0x70(x1/2),0x80(x1),0x90(x2) */ +#endif +} KMIF_SOUND_DEVICE; + +#ifdef __cplusplus +} +#endif +#endif /* KMSNDDEV_H__ */ |