summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/tms3615.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/tms3615.h')
-rw-r--r--src/emu/sound/tms3615.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/emu/sound/tms3615.h b/src/emu/sound/tms3615.h
index 294ce98c22d..c7645e00017 100644
--- a/src/emu/sound/tms3615.h
+++ b/src/emu/sound/tms3615.h
@@ -10,6 +10,28 @@ extern void tms3615_enable_w(device_t *device, int enable);
#define TMS3615_FOOTAGE_8 0
#define TMS3615_FOOTAGE_16 1
-DECLARE_LEGACY_SOUND_DEVICE(TMS3615, tms3615);
+class tms3615_device : public device_t,
+ public device_sound_interface
+{
+public:
+ tms3615_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ ~tms3615_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();
+
+ // sound stream update overrides
+ virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples);
+private:
+ // internal state
+ void *m_token;
+};
+
+extern const device_type TMS3615;
+
#endif /* __TMS3615_H__ */