summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/speaker.h
diff options
context:
space:
mode:
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
+