summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/speaker.h
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2007-12-17 15:19:59 +0000
committer Aaron Giles <aaron@aarongiles.com>2007-12-17 15:19:59 +0000
commit7b77f1218624ea26dbb2efd85a19f795f5d4e02e (patch)
tree19209304095572b4fd61c2a2d6a5aa75c4e471ad /src/emu/sound/speaker.h
parent3da7f476068b3ffef713218ba2fc1bd5030f2c38 (diff)
Initial checkin of MAME 0.121.mame0121
Diffstat (limited to 'src/emu/sound/speaker.h')
-rw-r--r--src/emu/sound/speaker.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/emu/sound/speaker.h b/src/emu/sound/speaker.h
new file mode 100644
index 00000000000..ae89881bb80
--- /dev/null
+++ b/src/emu/sound/speaker.h
@@ -0,0 +1,29 @@
+/**********************************************************************
+
+ speaker.h
+ Sound driver to emulate a simple speaker,
+ driven by one or more output bits
+
+**********************************************************************/
+#ifndef SPEAKER_H
+#define SPEAKER_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+struct Speaker_interface
+{
+ int num_level; /* optional: number of levels (if not two) */
+ INT16 *levels; /* optional: pointer to level lookup table */
+};
+
+void speaker_level_w (int which, int new_level);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif
+