summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/gew7.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/gew7.h')
-rw-r--r--src/devices/sound/gew7.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/devices/sound/gew7.h b/src/devices/sound/gew7.h
new file mode 100644
index 00000000000..805422c9fe0
--- /dev/null
+++ b/src/devices/sound/gew7.h
@@ -0,0 +1,30 @@
+// license:BSD-3-Clause
+// copyright-holders:Devin Acker
+#ifndef MAME_SOUND_GEW7_H
+#define MAME_SOUND_GEW7_H
+
+#pragma once
+
+#include "gew.h"
+
+class gew7_pcm_device : public gew_pcm_device
+{
+public:
+ gew7_pcm_device(const machine_config& mconfig, const char* tag, device_t* owner, uint32_t clock);
+
+ void write(offs_t offset, uint8_t data);
+ uint8_t read(offs_t offset);
+
+ void write_hi(offs_t offset, uint8_t data);
+ uint8_t read_hi(offs_t offset);
+
+protected:
+ virtual void device_start() override ATTR_COLD;
+
+private:
+ void init_sample(sample_t& sample, uint32_t index);
+};
+
+DECLARE_DEVICE_TYPE(GEW7_PCM, gew7_pcm_device)
+
+#endif // MAME_SOUND_GEW7_H