From 6fd10cdacb5cbe47a4fc339c20a733d4a9a384a1 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Sat, 26 Nov 2016 20:57:57 +0900 Subject: initial --- libopna/opna.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 libopna/opna.h (limited to 'libopna/opna.h') diff --git a/libopna/opna.h b/libopna/opna.h new file mode 100644 index 0000000..a056156 --- /dev/null +++ b/libopna/opna.h @@ -0,0 +1,30 @@ +#ifndef LIBOPNA_OPNA_H_INCLUDED +#define LIBOPNA_OPNA_H_INCLUDED + +#include "opnafm.h" +#include "opnassg.h" +#include "opnadrum.h" +#include "opnaadpcm.h" + +#ifdef __cplusplus +extern "C" { +#endif + +struct opna { + struct opna_fm fm; + struct opna_ssg ssg; + struct opna_drum drum; + struct opna_adpcm adpcm; + struct opna_ssg_resampler resampler; + +}; + +void opna_reset(struct opna *opna); +void opna_writereg(struct opna *opna, unsigned reg, unsigned val); +void opna_mix(struct opna *opna, int16_t *buf, unsigned samples); + +#ifdef __cplusplus +} +#endif + +#endif // LIBOPNA_OPNA_H_INCLUDED -- cgit v1.2.3