summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/iremga20.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/iremga20.c')
-rw-r--r--src/emu/sound/iremga20.c51
1 files changed, 49 insertions, 2 deletions
diff --git a/src/emu/sound/iremga20.c b/src/emu/sound/iremga20.c
index a92e6870fca..ac277b9d81e 100644
--- a/src/emu/sound/iremga20.c
+++ b/src/emu/sound/iremga20.c
@@ -60,7 +60,7 @@ INLINE ga20_state *get_safe_token(device_t *device)
{
assert(device != NULL);
assert(device->type() == IREMGA20);
- return (ga20_state *)downcast<legacy_device_base *>(device)->token();
+ return (ga20_state *)downcast<iremga20_device *>(device)->token();
}
@@ -293,4 +293,51 @@ DEVICE_GET_INFO( iremga20 )
}
-DEFINE_LEGACY_SOUND_DEVICE(IREMGA20, iremga20);
+const device_type IREMGA20 = &device_creator<iremga20_device>;
+
+iremga20_device::iremga20_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+ : device_t(mconfig, IREMGA20, "Irem GA20", tag, owner, clock),
+ device_sound_interface(mconfig, *this)
+{
+ m_token = global_alloc_array_clear(UINT8, sizeof(ga20_state));
+}
+
+//-------------------------------------------------
+// device_config_complete - perform any
+// operations now that the configuration is
+// complete
+//-------------------------------------------------
+
+void iremga20_device::device_config_complete()
+{
+}
+
+//-------------------------------------------------
+// device_start - device-specific startup
+//-------------------------------------------------
+
+void iremga20_device::device_start()
+{
+ DEVICE_START_NAME( iremga20 )(this);
+}
+
+//-------------------------------------------------
+// device_reset - device-specific reset
+//-------------------------------------------------
+
+void iremga20_device::device_reset()
+{
+ DEVICE_RESET_NAME( iremga20 )(this);
+}
+
+//-------------------------------------------------
+// sound_stream_update - handle a stream update
+//-------------------------------------------------
+
+void iremga20_device::sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples)
+{
+ // should never get here
+ fatalerror("sound_stream_update called; not applicable to legacy sound devices\n");
+}
+
+