diff options
Diffstat (limited to 'src/emu/sound/tms36xx.h')
-rw-r--r-- | src/emu/sound/tms36xx.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/emu/sound/tms36xx.h b/src/emu/sound/tms36xx.h index 54baad6688b..a3cf9469820 100644 --- a/src/emu/sound/tms36xx.h +++ b/src/emu/sound/tms36xx.h @@ -28,6 +28,28 @@ extern void tms36xx_note_w(device_t *device, int octave, int note); /* TMS3617 interface functions */ extern void tms3617_enable_w(device_t *device, int enable); -DECLARE_LEGACY_SOUND_DEVICE(TMS36XX, tms36xx); +class tms36xx_device : public device_t, + public device_sound_interface +{ +public: + tms36xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + ~tms36xx_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 TMS36XX; + #endif /* __TMS36XX_H__ */ |