summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/8950intf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/8950intf.h')
-rw-r--r--src/emu/sound/8950intf.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/emu/sound/8950intf.h b/src/emu/sound/8950intf.h
index eab9d8208d7..3607ee96fba 100644
--- a/src/emu/sound/8950intf.h
+++ b/src/emu/sound/8950intf.h
@@ -24,6 +24,30 @@ READ8_DEVICE_HANDLER( y8950_read_port_r );
WRITE8_DEVICE_HANDLER( y8950_control_port_w );
WRITE8_DEVICE_HANDLER( y8950_write_port_w );
-DECLARE_LEGACY_SOUND_DEVICE(Y8950, y8950);
+class y8950_device : public device_t,
+ public device_sound_interface
+{
+public:
+ y8950_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ ~y8950_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_stop();
+ virtual void device_reset();
+
+ // 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 Y8950;
+
#endif /* __8950INTF_H__ */