summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/k053260.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/k053260.c')
-rw-r--r--src/emu/sound/k053260.c51
1 files changed, 49 insertions, 2 deletions
diff --git a/src/emu/sound/k053260.c b/src/emu/sound/k053260.c
index c9ebe0069ac..25dfa41b2ba 100644
--- a/src/emu/sound/k053260.c
+++ b/src/emu/sound/k053260.c
@@ -47,7 +47,7 @@ INLINE k053260_state *get_safe_token(device_t *device)
{
assert(device != NULL);
assert(device->type() == K053260);
- return (k053260_state *)downcast<legacy_device_base *>(device)->token();
+ return (k053260_state *)downcast<k053260_device *>(device)->token();
}
@@ -463,4 +463,51 @@ DEVICE_GET_INFO( k053260 )
}
-DEFINE_LEGACY_SOUND_DEVICE(K053260, k053260);
+const device_type K053260 = &device_creator<k053260_device>;
+
+k053260_device::k053260_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+ : device_t(mconfig, K053260, "K053260", tag, owner, clock),
+ device_sound_interface(mconfig, *this)
+{
+ m_token = global_alloc_array_clear(UINT8, sizeof(k053260_state));
+}
+
+//-------------------------------------------------
+// device_config_complete - perform any
+// operations now that the configuration is
+// complete
+//-------------------------------------------------
+
+void k053260_device::device_config_complete()
+{
+}
+
+//-------------------------------------------------
+// device_start - device-specific startup
+//-------------------------------------------------
+
+void k053260_device::device_start()
+{
+ DEVICE_START_NAME( k053260 )(this);
+}
+
+//-------------------------------------------------
+// device_reset - device-specific reset
+//-------------------------------------------------
+
+void k053260_device::device_reset()
+{
+ DEVICE_RESET_NAME( k053260 )(this);
+}
+
+//-------------------------------------------------
+// sound_stream_update - handle a stream update
+//-------------------------------------------------
+
+void k053260_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");
+}
+
+