summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/tms36xx.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/tms36xx.h')
-rw-r--r--src/emu/sound/tms36xx.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/emu/sound/tms36xx.h b/src/emu/sound/tms36xx.h
new file mode 100644
index 00000000000..45a4fa887d9
--- /dev/null
+++ b/src/emu/sound/tms36xx.h
@@ -0,0 +1,25 @@
+#ifndef TMS36XX_SOUND_H
+#define TMS36XX_SOUND_H
+
+/* subtypes */
+#define MM6221AA 21 /* Phoenix (fixed melodies) */
+#define TMS3615 15 /* Naughty Boy, Pleiads (13 notes, one output) */
+#define TMS3617 17 /* Monster Bash (13 notes, six outputs) */
+
+/* The interface structure */
+struct TMS36XXinterface {
+ int subtype;
+ double decay[6]; /* decay times for the six harmonic notes */
+ double speed; /* tune speed (meaningful for the TMS3615 only) */
+};
+
+/* MM6221AA interface functions */
+extern void mm6221aa_tune_w(int chip, int tune);
+
+/* TMS3615/17 interface functions */
+extern void tms36xx_note_w(int chip, int octave, int note);
+
+/* TMS3617 interface functions */
+extern void tms3617_enable_w(int chip, int enable);
+
+#endif