summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/ta7630.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/ta7630.h')
-rw-r--r--src/devices/sound/ta7630.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/src/devices/sound/ta7630.h b/src/devices/sound/ta7630.h
new file mode 100644
index 00000000000..e87fa879d3b
--- /dev/null
+++ b/src/devices/sound/ta7630.h
@@ -0,0 +1,61 @@
+// license:BSD-3-Clause
+// copyright-holders:Angelo Salese
+/***************************************************************************
+
+ TA7630P
+
+***************************************************************************/
+
+#ifndef MAME_SOUND_TA7630_H
+#define MAME_SOUND_TA7630_H
+
+#pragma once
+
+
+//**************************************************************************
+// INTERFACE CONFIGURATION MACROS
+//**************************************************************************
+
+#define MCFG_TA7630_ADD(tag) \
+ MCFG_DEVICE_ADD((tag), TA7630, (0))
+
+
+
+//**************************************************************************
+// TYPE DEFINITIONS
+//**************************************************************************
+
+// ======================> ta7630_device
+
+class ta7630_device : public device_t
+ /*, public device_sound_interface*/
+{
+public:
+ // construction/destruction
+ ta7630_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+ // filter setters
+ void set_device_volume(device_sound_interface *device,uint8_t value);
+
+protected:
+ // device-level overrides
+ //virtual void device_validity_check(validity_checker &valid) const override;
+ virtual void device_start() override;
+ virtual void device_reset() override;
+
+private:
+ double m_vol_ctrl[16]; // table for volume gains
+};
+
+
+// device type definition
+DECLARE_DEVICE_TYPE(TA7630, ta7630_device)
+
+
+
+//**************************************************************************
+// GLOBAL VARIABLES
+//**************************************************************************
+
+
+#endif // MAME_SOUND_TA7630_H