summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/audio/vc4000snd.h
diff options
context:
space:
mode:
author Fabio Priuli <etabeta78@users.noreply.github.com>2014-10-11 09:24:04 +0000
committer Fabio Priuli <etabeta78@users.noreply.github.com>2014-10-11 09:24:04 +0000
commit4ebee5fd3ff9ae296a3f666b5a939a457f68bd2f (patch)
tree36c9b3af82e9346092bd789d32e91a47ac127735 /src/mess/audio/vc4000snd.h
parent5e5708da2a9b0cdfa9a9779bf18b8c420f33ddfd (diff)
given to a couple of sound devices their own include. nw.
Diffstat (limited to 'src/mess/audio/vc4000snd.h')
-rw-r--r--src/mess/audio/vc4000snd.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/mess/audio/vc4000snd.h b/src/mess/audio/vc4000snd.h
new file mode 100644
index 00000000000..531556084f0
--- /dev/null
+++ b/src/mess/audio/vc4000snd.h
@@ -0,0 +1,45 @@
+/*****************************************************************************
+ *
+ * includes/vc4000snd.h
+ *
+ ****************************************************************************/
+
+#ifndef _VC4000SND_H_
+#define _VC4000SND_H_
+
+#include "emu.h"
+
+//**************************************************************************
+// TYPE DEFINITIONS
+//**************************************************************************
+
+// ======================> vc4000_sound_device
+
+class vc4000_sound_device : public device_t,
+ public device_sound_interface
+{
+public:
+ vc4000_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ ~vc4000_sound_device() { }
+
+protected:
+ // device-level overrides
+ virtual void device_start();
+
+ // sound stream update overrides
+ virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples);
+
+public:
+ void soundport_w(int mode, int data);
+
+private:
+ sound_stream *m_channel;
+ UINT8 m_reg[1];
+ int m_size;
+ int m_pos;
+ unsigned m_level;
+};
+
+extern const device_type VC4000_SND;
+
+#endif /* _VC4000SND_H_ */