summaryrefslogtreecommitdiff
path: root/plugins/gme/game-music-emu-0.6pre/gme/kmsnddev.h
blob: ec7552b1bf36296855eda1ed8b9615568a311157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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__ */