summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/audio/t6721.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/audio/t6721.h')
-rw-r--r--src/mess/audio/t6721.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/mess/audio/t6721.h b/src/mess/audio/t6721.h
index 50f2fb4672a..d10de292616 100644
--- a/src/mess/audio/t6721.h
+++ b/src/mess/audio/t6721.h
@@ -12,7 +12,26 @@
DEVICE CONFIGURATION MACROS
***************************************************************************/
-DECLARE_LEGACY_DEVICE(T6721, t6721);
+class t6721_device : public device_t
+{
+public:
+ t6721_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ ~t6721_device() { global_free(m_token); }
+
+ // access to legacy token
+ void *token() const { assert(m_token != NULL); return m_token; }
+protected:
+ // device-level overrides
+ virtual void device_config_complete();
+ virtual void device_start();
+ virtual void device_reset();
+private:
+ // internal state
+ void *m_token;
+};
+
+extern const device_type T6721;
+
#define MCFG_T6721_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, T6721, 0) \